25.06.2011, 19:11
PHP код:
if(!strcmp(cmdtext, "/tcps", true)) {
SendClientMessage(playerid, COLOR_RED, "[ MEMBRO DO TCP ONLINE ]");
for(new i=0; i<MAX_PLAYERS; ++i)
{
if(IsPlayerConnected(i) || logged[i] == 1) {
if(PlayerInfo[i][TCP] >= 1) {
new cargo[20];
if(PlayerInfo[i][TCP] == 1) cargo = "Fogueteiro";
else if(PlayerInfo[i][TCP] == 2) cargo = "Vapor";
else if(PlayerInfo[i][TCP] == 3) cargo = "Traficante";
else if(PlayerInfo[i][TCP] == 4) cargo = "Gerente";
else if(PlayerInfo[i][TCP] == 5) cargo = "Dono do Morro";
new str[256],pname[24]; GetPlayerName(i, pname, 24);
format(str, 128, "%s %s",cargo, pname);
SendClientMessage(playerid, COLOR_CYAN, str);
}
}
return 0x01;
}
return 0x01;
}