27.02.2013, 22:15
Tenta
pawn Код:
COMMAND:promover(playerid, params[])
{
new PlayerB, pCargo;
new Nome[MAX_PLAYER_NAME];
new String[100];
GetPlayerName(PlayerB, Nome, sizeof(Nome));
new Lider[MAX_PLAYER_NAME];
GetPlayerName(playerid, Lider, sizeof(Lider));
if(sscanf(params, "ud", PlayerB, pCargo)) return SendClientMessage(playerid,COR_ERRO,"Digite: /Promover [id][cargo]");
if(PlayerInfo[playerid][Cargo] < 9) return SendClientMessage(playerid, COR_ERRO, "Voce nao й lider da organizaзao.");
if(PlayerInfo[PlayerB][Org] != PlayerInfo[playerid][Org]) return SendClientMessage(playerid, COR_ERRO, "O player nao й de sua organizaзao.");
PlayerInfo[PlayerB][Cargo] = pCargo;
format(String, sizeof(String),"O Lider %s alistou %s para Organizaзao : %s",Lider, Nome, Nomeorgs[PlayerInfo[playerid][Org]]);
SendClientMessageToAll(COR_AVISOADM,String);
return true;
}