31.12.2010, 10:00
pawn Код:
if(!strcmp(cmdtext, "/trabalhar", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gPlayerLogged[playerid] == 0)
{
SendClientMessage(playerid, COLOR_GREY, " Vocк precisa estar logado !");
return 1;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(AdminDuty[playerid] == 0)
{
AdminDuty[playerid] = 1;
SetPlayerArmour(playerid, 99999);
SetPlayerHealth(playerid, 99999);
SetPlayerColor(playerid, COLOR_ROSA);
SetPlayerSkin(playerid, 217);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "O admin %s estб trabalhando.", sendername);
SendClientMessageToAll(COLOR_ROSA, string);
return 1;
}
else if(AdminDuty[playerid] == 1)
{
AdminDuty[playerid] = 0;
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "O admin %s estб jogando.", sendername);
SendClientMessageToAll(COLOR_ROSA,string);
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um admin !");
return 1;
}
}
return 1;
}