Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- if(strcmp(cmdtext, "/jogar", true) == 0)
- {
- if(PlayerInfo[playerid][pAdmin] >= 1)
- {
- if(PoderosoInfo[playerid][pTrampo] > 0)
- {
- PoderosoInfo[playerid][AdmInvisivel] = 0;
- PoderosoInfo[playerid][pTrampo] = 0;
- GetPlayerName(playerid,sendername,sizeof(sendername));
- SendClientMessageToAll(COLOR_WHITE, "|___________ Aviso da Administração ___________|");
- format(string, 256, "Admin: %s ID(%d) entrou em modo de Jogo!",sendername, playerid);
- SendClientMessageToAll(COLOR_DBLUE, string);
- SetPlayerToTeamColor(playerid);
- ResetPlayerWeapons(playerid);
- SetPlayerHealth(playerid,100);
- SetPlayerSkin(playerid, GetPVarInt(playerid, "Skin"));
- DeletePVar(playerid, "Skin");
- }
- else
- {
- PoderosoInfo[playerid][AdmInvisivel] = 0;
- PoderosoInfo[playerid][pTrampo] = 1;
- GetPlayerName(playerid,sendername,sizeof(sendername));
- SendClientMessageToAll(COLOR_WHITE, "|___________ Aviso da Administração ___________|");
- format(string, 256, "Admin: %s ID(%d) entrou em modo de Admin!",sendername, playerid);
- GetPVarInt(playerid, "Skin", GetPlayerSkin(playerid));
- SendClientMessageToAll(COLOR_DBLUE, string);
- SetPlayerToTeamColor(playerid);
- SetPlayerHealth(playerid,FLOAT_INFINITY);
- SetPlayerSkin(playerid, 217);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment