if(strcmp(cmd, "/gmx", true) == 0)
{
if(PlayerInfo[playerid][pAdmin] >= 2800)
{
if(AdminInfo[playerid][aTrabalhando] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
pap_SalvarInt(i, "Skin", GetPlayerSkin(playerid));
}
LimparChat(999);
format(string, sizeof(string), "[ADMIN] %s deu GMX no servidor.", sendername);
SendClientMessageToAll(COLOR_FADE5, string);
GameTextForAll("~g~G~y~M~b~X~w~!", 1000, 0);
GameModeExit();
return 1;
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo esta logado como admin. (Use: /ta)");
return 1;
}
}
else if(PlayerInfo[playerid][pAdmin] > 0 && PlayerInfo[playerid][pAdmin] < 2800)
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк й cargo baixo.");
return 1;
}
else if(PlayerInfo[playerid][pAdmin] == 0)
{
SendClientMessage(playerid, COLOR_GRAD2, "Vocк nгo й admin.");
return 1;
}
}
for(new i = 0; i < (MAX_PLAYERS+1); i++)
{
pap_SalvarInt(i, "Skin", GetPlayerSkin(i));
}
new i;
#define SLOTS 500 //- Nъmero de Slots -//
for(i = 0 ; i <= MAX_PLAYERS; i++)//+1,ele teria que calcular,nгo, nгo buga '<='
{
pap_SalvarInt(i, "Skin", GetPlayerSkin(i));
}
new i;
#define SLOTS 500 //Nъmero de Slots
for(i = 0 ; i <= SLOTS; i++)
{
pap_SalvarInt(i, "Skin", GetPlayerSkin(i));
}
Valeu LIP, nem me Liguei
This forum requires that you wait 120 seconds between posts. Please try again in 43 seconds. |
#if defined MAX_PLAYERS
#undef MAX_PLAYERS
#define MAX_PLAYERS 501
#endif