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