Advertisement
Guest User

CMD

a guest
Oct 29th, 2020
108
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.96 KB | None | 0 0
  1. CMD:trab(playerid, params[])
  2. {
  3. if(pAdmin[playerid] >= 1 && pAdmin[playerid] <= 10)
  4. {
  5. format( gFile, sizeof( gFile ), PASTA_CONTAS, pName( playerid ));
  6. if(rInfo[playerid][Trabalhando] == 1)
  7. rInfo[playerid][Trabalhando] = 0;
  8. if(Oculto[playerid] == 0)
  9. {
  10. rInfo[playerid][Trabalhando] = 1; dini_IntSet(gFile, "Trabalhando", 0);
  11. if(Oculto[playerid] == 0)
  12. {
  13. new string[128];
  14. SendClientMessageToAll(COLOR_AZULBB, "{EC00FF}|_______________ Administracao _______________|");
  15. format(string, sizeof(string), "{EC00FF}Admin: %s ID[%d] esta Trabalhando, Veja em {E0EEE0}/admins", pName(playerid), playerid);
  16. SendClientMessageToAll(0xFFFBF8AA, string);
  17. SetColorToPlayer(playerid);
  18. }
  19. SetPlayerArmour(playerid, 999999);
  20. SetPlayerHealth(playerid, 999999);
  21. format( gFile, sizeof( gFile ), PASTA_CONTAS, pName( playerid ));
  22. dini_IntSet(gFile, "TempoTra", gettime()+60*60);
  23. SetPVarInt(playerid, "Trabalho", gettime()+60*60);
  24. dini_IntSet(gFile, "Trabalhando", 0);
  25. }
  26. }
  27. return 1;
  28. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement