15.03.2012, 02:30
tenta assim:
pawn Код:
if(strcmp(cmd, "/ga", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new form[20],idx;
new length = strlen(cmdtext);
while ((idx < length) && (cmdtext[idx] <= ' ')) { idx++; }
new offset = idx; new result[128];
while ((idx < length) && ((idx - offset) < (sizeof(result) - 1))) { result[idx - offset] = cmdtext[idx]; idx++; }
result[idx - offset] = EOS;
if(!strlen(result)) return SendClientMessage(playerid, CINZA, "USE: (/ga)ngue [ORG CHAT]");
if (PlayerInfo[playerid][pLider] > 0 || PlayerInfo[playerid][pMembro] > 0)
{
format(string, sizeof(string), "* %s falou algo no rбdio da gangue.", sendername);
ProxDetector(20.0, playerid, string, COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE,COLOR_PURPLE);
if(PlayerInfo[playerid][pLider] == 1) form = "Chefe da Boca";
if(PlayerInfo[playerid][pCargo] == 6) form = "Chefгo";
if(PlayerInfo[playerid][pCargo] == 555) form = "Sub Chefe";
if(PlayerInfo[playerid][pCargo] == 444) form ="Sub Chefe";
if(PlayerInfo[playerid][pCargo] == 5) form = "Vapor";
if(PlayerInfo[playerid][pCargo] == 4) form = "Soldado";
if(PlayerInfo[playerid][pCargo] == 3) form = "Fogueteiro";
if(PlayerInfo[playerid][pCargo] == 2) form = "Gangster";
if(PlayerInfo[playerid][pCargo] == 1) form = "Olheiro";
format(string, sizeof(string), "** %s %s: %s. )) **",form, sendername, result);
SendFamilyMessage(PlayerInfo[playerid][pMembro], COR_GROOVE, string);
printf("%s", string);
return 1;
}
else return SendClientMessage(playerid, CINZA, "Vocк nгo faz parte de nenhuma famнlia!");
}
return 1;
}