17.08.2010, 17:35
Quote:
OK ENTAO LA VAI LA
E O /CREDITOS NAO TEM AINDA OBRIGADO PELAS BOAS VINDAS!!! |
pawn Код:
if(strcmp(cmd, "/gmx", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
for(new a = 0; a < 100; a++)
{
SendClientMessageToAll(0x33CCFFAA, " ");
}
GameModeExit();
SendClientMessageToAll(0x33CCFFAA, " Atenзгo Isto e um Gmx Nгo saia do servidor...");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo pode usar esse comando!");
}
}
return 1;
}
pawn Код:
if (strcmp(cmd, "/admins", true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid, COLOR_GRAD1, "Admins Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1338)
{
GetPlayerName(i, sendername, sizeof(sendername));
format(string, 256, "Admin: %s", sendername);
SendClientMessage(playerid, COLOR_PINK, string);
}
}
}
}
return 1;
}