17.12.2013, 04:56
pawn Код:
if(strcmp(cmd, "/trabalhar", true) == 0)
{
if(PlayerInfo[playerid][pJailed] != 0)
{
SendClientMessage(playerid,COLOR_YELLOW," Vocк nгo pode trabalhar na cadeia!");
return true;
}
if(PlayerInfo[playerid][pAdmin] >= 1)
{
if(admtrampando[playerid] > 0)
{
admtrampando[playerid] = 0;
GetPlayerName(playerid,sendername,sizeof(sendername));
SendClientMessageToAll(COLOR_AZULBB, "|_______________ Administraзгo _______________|");
format(string, 128, "{00BFFF}Admin: %s ID(%d) estб Jogando, Veja em {E0EEE0}/admins",sendername, playerid);
SendClientMessageToAll(0x660066F6, string);
KillTimer(TempoAdministrador);
SetPlayerToTeamColor(playerid);
ResetPlayerWeaponsEx(playerid);
SetPlayerHealth(playerid,100);
SetPlayerSkin(playerid,skinadm[playerid]);
getdate(year, month, day);
gettime(hour,minute,second);
format(gstring, sizeof(gstring), "%s esta jogando [%d/%d/%d - %d:%d:%d]\n", PlayerName(playerid), day, month, year, hour, minute, second);
AdminLog(gstring);
}
else
{
admtrampando[playerid] = 1;
GetPlayerName(playerid,sendername,sizeof(sendername));
SendClientMessageToAll(COLOR_AZULBB, "|_______________ Administraзгo _______________|");
format(string, 128, "{00BFFF}Admin: %s ID(%d) estб Trabalhando, veja em {E0EEE0}/admins",sendername, playerid);
SendClientMessageToAll(0xAA3333AA, string);
SetPlayerToTeamColor(playerid);
TempoAdministrador = SetTimerEx("Administrador", 100, true, "i", playerid);
skinadm[playerid] = GetPlayerSkin(playerid);
SetPlayerSkin(playerid,217);
getdate(year, month, day);
gettime(hour,minute,second);
format(gstring, sizeof(gstring), "%s estб trabalhando [%d/%d/%d - %d:%d:%d]\n", PlayerName(playerid), day, month, year, hour, minute, second);
AdminLog(gstring);
}
}
return true;
}
Sу estou pensando como.
sugestхes ?