07.06.2012, 12:21
Creditos a AFerreira && Don_Speed
pawn Код:
new EquipeSS[MAX_PLAYERS];
CMD:minhagang(playerid)
{
new SuName[MAX_PLAYERS],Stringa[128];
if(IsPlayerConnected(playerid))
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
GetPlayerName(i,SuName,MAX_PLAYER_NAME);
format(Stringa, sizeof(Stringa), "Jogador : %s estб na gang : %s",SuName,GetarGang(playerid));
SendClientMessageToAll(-1,Stringa);
}
}
}
return 1;
}
stock GetarGang(playerid){
new Nome[30];
if(EquipeSS[i] == 1) Nome="Gang 1";
else if(EquipeSS[i] == 2) Nome="Gang 2";
else if(EquipeSS[i] == 3) Nome="Gang 3";
return Nome;
}