31.08.2009, 07:41
Quote:
Originally Posted by sggassasin
could someone help me coz i need a /makeadmin command and a / heal command
so evan if you do one i dont care i just need some help |
Here is the command without Adminmod (Just add If's.)
Код:
if(strcmp(cmd, "/heal", true) == 0) { if(IsPlayerConnected(playerid)) { tmp = strtok(cmdtext, idx); if(!strlen(tmp)) { SendClientMessage(playerid, COLOR_GRAD2, "USAGE: /heal [playerid/PartOfName]"); return 1; } new playa; playa = ReturnUser(tmp); if(IsPlayerConnected(playa)) { if(playa != INVALID_PLAYER_ID) { SetPlayerHealth(playa,100.0); format(string, sizeof(string), "You have been healed to 100 health."); SendClientMessage(playa, TEAM_GREEN_COLOR,string); } } } return 1; }