Quote:
Originally Posted by tour15
You can also add at the top of your script but its no recomended
|
Quote:
Originally Posted by Alby Fire
pawn Код:
new cmd[128],idx,tmp[256]; cmd = strtok(cmdtext, idx); if(!strcmp(cmd, "/akill", true, 6)) { if(IsPlayerAdmin(playerid)) { new id; tmp = strtok(cmdtext, idx); id = strval(tmp); if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_RED,"Use: /akill ID"); SetPlayerHealth(id, 0); SendClientMessageToAll(COLOR_RED, "Someone is been killed by the admin !"); } return 1; } if(!strcmp(cmd, "/money", true, 6)) { if(IsPlayerAdmin(playerid)) { GivePlayerMoney(playerid, 10000); } return 1; }
|
Thanks guys ! It's solved ! (a) ^^