20.07.2009, 03:02
im bored so ill throw you something
paste this underneath "public OnPlayerCommandText"
paste this underneath "public OnPlayerCommandText"
Код:
new cmd[128], idx; cmd = strtok(cmdtext, idx); if (strcmp(cmd, "/explode",true) ==0) { new tmp; tmp = strval(cmdtext, idx); if(!strval(tmp)) return SendClientMessage(playerid, 0xFF0000AA, "USAGE: /explode [player ID]"); if(IsPlayerConnected(tmp)) { new Float:x, Float:y, Float:z; GetPlayerPos(tmp, Float:x, Float:y, Float:z); CreateExplosion(Float:x, Float:y, Float:z, 2, 10.0); } else return SendClientMessage(playerid, 0xFF0000AA, "That player ID is not online right now"); }