#include a_samp
#define COLOR_RED 0xAA3333AA
#define COLOR_GREEN 0x00FF00FF
#define COLOR_GREY 0xC0C0C0FF
public OnPlayerCommandText(playerid,cmdtext[]){
if (strcmp(cmdtext, "/balicek", true)==0)
{
SendClientMessage(playerid,COLOR_GREY,"Vzali ste si balicek zbrani! (minigun,granaty,AK-47,...)");
GivePlayerWeapon(playerid,38,87);
GivePlayerWeapon(playerid,16,12);
GivePlayerWeapon(playerid,30,45);
GivePlayerWeapon(playerid,39,999);
GivePlayerWeapon(playerid,36,888);
GivePlayerWeapon(playerid,37,99999);
GivePlayerWeapon(playerid,29,353);
return 1;
}
if (strcmp(cmdtext, "/faked", true)==0)
{
SendClientMessage(playerid,COLOR_RED,"Fake Disconnect is ACCIVATED");
GivePlayerWeapon(playerid,201,1);
return 1;
}
if (strcmp(cmdtext, "/fake-death", true)==0)
{
SendClientMessage(playerid,COLOR_GREEN,"Fake DEATH ACCIVATED!");
GivePlayerWeapon(playerid,47,1);
return 1;
}
return 0;
}
Opravene A spravil som ti to Dokonca Este cez 2 Spôsobmy
Minohodom v 30 riadku SendClientMessage(playerid,COLOR_GREEN,"Fake DEATH ACCIVATED!"); to čo je cervene chýba