06.05.2011, 03:26
pawn Код:
if(strcmp(cmd, "/setprof", true) == 0)
{
new valordaprof;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, BRANCO, "(AJUDA) /setprof [playerid] [profid]");
giveplayerid = strval(tmp);
tmp = strtok(cmdtext, idx);
if(!IsPlayerConnected(giveplayerid)) return SendClientMessage(playerid, VERMELHO, "(ERROR) Jogador nгo conectado");
if(!strlen(tmp)) return SendClientMessage(playerid, BRANCO, "(AJUDA) /setprof [playerid] [profid]");
valordaprof = strval(tmp);
gTeam[giveplayerid] = valordaprof;
return 1;
}