|
Gyors futs
UsePlayerPedAnims();
Rakd a GameModeInt() al
Fegyver hasznlata interriorban
AllowInteriorWeapons(1);
Rakd a GameModeInt() al
Fegyver/pnz/score/hp/pncl
GivePlayerWeapon(playerid, fegyver id, tltny);
GivePlayerWeapon(playerid, 23, 100);
SetPlayerScore(playerid, 0);
0 = ennyi pontja lesz a jtkosnak
vagy
Ha adni akarsz a jtkosnak pontot
SetPlayerScore(playerid,GetPlayerScore(playerid)+1);
+1 = plusz 1 pontot kap a jtkos
GivePlayerMoney(playerid, 1000);
1000 = Ennyi pnze lesz a jtkosnak
vagy
Ha le akarsz vonni a jtkostl pnzt
GivePlayerMoney(playerid, -1000);
SetPlayerHealth(playerid, 100);
100=Max hp (ha 0-ra teszed a jtkos meghal)
vagy
GodMode SetPlayerHealth(playerid 99999999);
SetPlayerArmour(playerid 100);
100=Max pnclzat
Jrm megjavtsa
new veh;
veh = GetPlayerVehicleID(playerid)
SetVehicleHealth(veh, 1000);
RepairVehicle(veh);
kezetes betk gametext-ben
~ =
=
=
¦ =
=
=
=
¬ =
« =
Sznek:
#define COLOR_DARKORANGE 0xFF7318FF
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_BLUE 0x0000FFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_WITHE 0xFFFFFFAA
#define COLOR_PURPLE 0x9900FFAA
#define COLOR_BROWN 0x993300AA
#define COLOR_ORANGE 0xFF9933AA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_TAN 0xFFFFCCAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_KHAKI 0x999900AA
#define COLOR_LIME 0x99FF00AA
#define COLOR_BLACK 0x000000AA
#define COLOR_TURQ 0x00A3C0AA
#define COLOR_LIGHTBLUE 0x00BFFFAA
#define COLOR_GREENISHGOLD 0xCCFFDD56
#define COLOR_LIGHTBLUEGREEN 0x0FFDD349
#define COLOR_NEUTRALBLUE 0xABCDEF01
#define COLOR_LIGHTCYAN 0xAAFFCC33
#define COLOR_LEMON 0xDDDD2357
#define COLOR_AQUA 0x7CFC00AA
#define COLOR_WHITEYELLOW 0xFFE87DAA
#define COLOR_BLUEAQUA 0x7E60FFAA
#define COLOR_GREENYELLOWWHITE 0xCBFF45AA
#define COLOR_DARKBLUE 0x15005EAA
#define COLOR_RED 0xAA3333AA
#define COLOR_ULTRARED 0xFF0606FF
#define COLOR_WARNING 0xFB0000FF
#define COLOR_VIOLET 0x8F698FFF
---------------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------------
Hasznos j fggvnyek:
A pirossal kijellteket akrhova, egy j sorba rakjtok be!
---------------------------------------------------------------------------------------------------------------------
SendMessage fggvny:
stock SendMessage(playerid, const message[])
{
new colors[][21]={
{0x000000AA},{0x00A3C0AA},{0x00BFFFAA}, {0xCCFFDD56}, {0x0FFDD349}, {0xABCDEF01}, {0xAAFFCC33},
{0xDDDD2357}, {0x7CFC00AA}, {0xFFE87DAA}, {0x7E60FFAA}, {0xCBFF45AA}, {0x15005EAA}, {0xAA3333AA},
{0xFF0606FF}, {0xFB0000FF}, {0x99FF00AA}, {0xB22222FF}, {0xFFFFF0FF}, {0x778899FF}, {0xCD853FFF} // tbb szint is berakhatsz
};
new rand = random(sizeof(colors));
SendClientMessage(playerid, colors[rand][0], message);
return 1;
}
Funkcija: Random sznekben rja ki a szveget.
Hasznlat: SendMessage(playerid, "szveg");
---------------------------------------------------------------------------------------------------------------------
PlaySoundForAll fggvny:
stock PlaySoundForAll(soundid)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new Float:p[3];
GetPlayerPos(i, p[0], p[1], p[2]);
PlayerPlaySound(i, soundid, p[0], p[1], p[2]);
}
}
Fukncija: Lejtsza az adott hangot az sszes online szerveren lv jtkosoknak
Hasznlat: PlaySoundForAll(soundid);
| |
xD
Hesoyam parancs :D
a hesoyamot trom valami msra :D
de am komoly :D
„ public OnPlayerCommandText(playerid, cmdtext[])
{
new cmd[256];
new idx;
new veh;
cmd = strtok(cmdtext, idx);
if(strcmp(cmd, "/hesoyam", true) == 0) {
GivePlayerWeapon(playerid, 38, 200); // minigun
SetPlayerScore(playerid,GetPlayerScore(playerid)+100); // 100 pont plusz
GivePlayerMoney(playerid, 250000); // 250 000$ kap
SetPlayerHealth(playerid, 100); // kap full letet
SetPlayerArmour(playerid, 100); // kap full pnclt
veh = GetPlayerVehicleID(playerid); // megjavitja a kocsit
SetVehicleHealth(veh, 1000);
RepairVehicle(veh);
return 1;
}
return 0;
}