30.05.2017, 20:43
Eu fiz o que eu entendi...
PHP код:
CMD:seila(playerid)
{
new string[200], string2[200];
for(new c; c < MAX_PLAYERS; ++c)
{
if(Player[i][pFrente] == 1 || Player[i][pGerente] == 1 || Player[i][pVapor] == 1 || Player[i][pFogueteiro] == 1)
{
format(string, 200, "ID: %d ... Nome: %s ... Cargo: %s", i, PlayerName(i), PlayerCargo(i));
strcat(string2, string);
}
}
ShowPlayerDialog(playerid, 666, DIALOG_STYLE_MSGBOX, "Sei la", string2, "Ok", "");
return 1;
}
PlayerName(playerid)
{
new nome[MAX_PLAYER_NAME];
GetPlayerName(playerid, nome, MAX_PLAYER_NAME);
return nome;
}
PlayerCargo(playerid)
{
new str[20];
if(Player[playerid][pFrente])
{
str = "Frente";
}
else if(Player[playerid][pGerente])
{
str = "Gerente";
}
else if(Player[playerid][pVapor])
{
str = "Vapor";
}
else if(Player[playerid][pFogueteiro])
{
str = "Fogueteiro";
}
return 1;
}