25.06.2011, 12:51
(
Последний раз редактировалось Shadoww5; 25.06.2011 в 12:53.
Причина: Corrigido !
)
PHP код:
public OnPlayerCommandText(playerid, cmdtext[])
{
if(!strcmp(cmdtext, "/tcps", true))
{
SendClientMessage(playerid, COLOR_RED, "[ MEMBRO DO TCP ONLINE ]");
new count=0;
for(new i=0; i<MAX_PLAYERS; i++)
{
if(logged[i] == 1)
{
if(PlayerInfo[i][TCP] >= 1)
{
new cargo[20];
if(PlayerInfo[i][TCP] == 1) cargo = "Fogueteiro";
if(PlayerInfo[i][TCP] == 2) cargo = "Vapor";
if(PlayerInfo[i][TCP] == 3) cargo = "Traficante";
if(PlayerInfo[i][TCP] == 4) cargo = "Gerente";
if(PlayerInfo[i][TCP] == 5) cargo = "Dono do Morro";
new str[256];
new pname[24];
GetPlayerName(i, pname, 24);
format(str, 256, "%s - %s",cargo, pname );
SendClientMessage(playerid, COLOR_CYAN, str);
count++;
}
}
}
if(count == 0) { SendClientMessage(playerid, COLOR_CYAN, "Nгo tem nenhum TCP on-line agora!"); }
return 1;
}
return 0;
}