05.06.2013, 13:45
pawn Код:
if(!strcmp(cmdtext, "/trabalhar", true))
{
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)
{
SetPlayerSkin(playerid,217);
AdminDuty[playerid] = 1;
SetPlayerArmour(playerid, 100);
SetPlayerHealth(playerid, 100);
GivePlayerWeapon(playerid, 24, 99999);
GivePlayerWeapon(playerid, 25, 99999);
GivePlayerWeapon(playerid, 29, 99999);
GivePlayerWeapon(playerid, 31, 99999);
GivePlayerWeapon(playerid, 34, 99999);
SetPlayerColor(playerid,COLOR_YELLOW);
Create3DTextLabel("Trabalha caba Safado!",0xF00ECAA,10.0,40.0,10.0,20.0,0);
Attach3DTextLabelToPlayer(Trabalhando,playerid,0.0,0.0,4.0);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Servidor] [ID:%d]%s estб Trabalhando.", playerid, sendername);
ABroadCastSenha(COLOR_YELLOW,string,1);
if(PlayerInfo[playerid][pAdmin] >= 2)
{
}
return 1;
}
else if(AdminDuty[playerid] == 1)
{
SetPlayerSkin(playerid, PlayerInfo[playerid][pModel]);
AdminDuty[playerid] = 0;
SetPlayerArmour(playerid, 0);
SetPlayerHealth(playerid, 100);
ResetPlayerWeapons(playerid);
SetPlayerColor(playerid,TEAM_HIT_COLOR);
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "[Servidor] [ID:%d]%s nгo estб mais Trabalhando.", playerid, sendername);
ABroadCastSenha(COLOR_YELLOW,string,1);
Delete3DTextLabel(Trabalhando);
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo tem permissгo para usar este comando!");
return 1;
}
}
return 1;
}