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