13.02.2012, 23:52
pawn Код:
if(strcmp(cmd, "/acurar", true) == 0)
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
return SendClientMessage(playerid, COLOR_LIGHTORANGE, "[Comando:] /acurar [playerid] ");
new playa;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
if(PlayerInfo[playerid][pAdmin] < 1)
return SendClientMessage(playerid,-1,"ERRO: Nao йs administrador.");
if(IsPlayerConnected(playa))
return SendClientMessage(playerid,-1," o jogador estб offline!");
icurar(playa);
format(string, sizeof(string), " Foste curado por %s.",GetPlayerNameEx(playerid));
SendClientMessage(playa,COLOR_WHITE,string);
format(string, sizeof(string), " Curaste %s.",GetPlayerNameEx(playa));
SendClientMessage(playerid,COLOR_WHITE,string);
return 1;
}