08.10.2009, 04:37
Код:
if(strcmp(cmd, "/hp", true) == 0) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTRED, "/hp [playerid/PartOfName] [health]"); return 1; } new targetid = strval(tmp); tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_LIGHTRED, "/hp [playerid/PartOfName] [health]"); return 1; } new health = strval(tmp); if(IsPlayerConnected(targetid)) { SetPlayerHealth(playerid, health); } return 1; }