18.04.2011, 02:57
pawn Код:
{
if(!strcmp("/vida", cmdtext, true))
{
if(gTeam[playerid] == ENFERMEIRO)
{
SetPlayerHealth(playerid, 100);
return 1;
}
}
{
if(!strcmp("/vida", cmdtext, true))
{
if(gTeam[playerid] == ENFERMEIRO)
{
SetPlayerHealth(playerid, 100);
return 1;
}
}
if(strcmp(cmd, "/vida", true) == 0)
{
if(gTeam[playerid] == ENFERMEIRO)
{
new tmp[20], giveplayerid;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, Branco, "Uso correto: /Vida [id]");
giveplayerid = strval(tmp);
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, Branco, "Este jogador nгo estб online");
SetPlayerHealth(giveplayerid, 100);
}
else SendClientMessage(playerid, Branco, "Vocк nгo й um enfermeiro");
return 1;
}
new cmd[256];
new idx;