Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- CMD:trab(playerid, params[])
- {
- if(pAdmin[playerid] >= 1 && pAdmin[playerid] <= 10)
- {
- format( gFile, sizeof( gFile ), PASTA_CONTAS, pName( playerid ));
- if(rInfo[playerid][Trabalhando] == 1)
- rInfo[playerid][Trabalhando] = 0;
- if(Oculto[playerid] == 0)
- {
- rInfo[playerid][Trabalhando] = 1; dini_IntSet(gFile, "Trabalhando", 0);
- if(Oculto[playerid] == 0)
- {
- new string[128];
- SendClientMessageToAll(COLOR_AZULBB, "{EC00FF}|_______________ Administracao _______________|");
- format(string, sizeof(string), "{EC00FF}Admin: %s ID[%d] esta Trabalhando, Veja em {E0EEE0}/admins", pName(playerid), playerid);
- SendClientMessageToAll(0xFFFBF8AA, string);
- SetColorToPlayer(playerid);
- }
- SetPlayerArmour(playerid, 999999);
- SetPlayerHealth(playerid, 999999);
- format( gFile, sizeof( gFile ), PASTA_CONTAS, pName( playerid ));
- dini_IntSet(gFile, "TempoTra", gettime()+60*60);
- SetPVarInt(playerid, "Trabalho", gettime()+60*60);
- dini_IntSet(gFile, "Trabalhando", 0);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement