Advertisement
Guest User

Untitled

a guest
Nov 9th, 2021
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.70 KB | None | 0 0
  1. if(strcmp(cmd, "/work", true) == 0)
  2. {
  3. if(PlayerInfo[playerid][pWantedLevel] > 0) return SCM(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda cand ai wanted!");
  4. if(PlayerOnMission[playerid] > 0) return SCM(playerid, COLOR_LIGHTRED, "Nu poti folosi aceasta comanda cand ai misiune On!");
  5. if(CP[playerid] != 0) return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai un punct rosu pe harta, dezactiveaza-l intai!");
  6. if(InJob[playerid] == 1) return SendClientMessage(playerid, COLOR_LIGHTRED, "Ai deja o slujba de efectuat, nu poti sa folosesti aceasta comanda!");
  7. if(IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid, COLOR_LIGHTRED, "Nu trebuie sa te afli intr-un vehicul!");
  8. switch (PlayerInfo[playerid][pJob] )
  9. {
  10. case 0: SCM ( playerid, COLOR_LIGHTRED, "Nu detii un job!" ) ;
  11. case 8:
  12. {
  13. if(!PlayerToPoint(10.0,playerid,-807.7404,-137.8756,63.8066)) return SCM(playerid, COLOR_LIGHTRED, " Nu esti la locatia potrivita ");
  14. {
  15. if(marfap[playerid] == 0)
  16. {
  17. InJob[playerid] = 1;
  18. new randcp = random(sizeof(RandomLemne));
  19. SetPlayerCheckpoint(playerid, RandomLemne[randcp][0], RandomLemne[randcp][1], RandomLemne[randcp][2], RandomLemne[randcp][3]);
  20. return 1;
  21. }
  22. }
  23. case 10:
  24. {
  25. if(GetVehicleModel(GetPlayerVehicleID(playerid)) == 572)
  26. {
  27. SetPlayerCheckpoint(playerid,-9.8959,-2.0086,3.1172,3.0);
  28. GameTextForPlayer(playerid, "~g~Urmeaza CheckPointurile de Map~n~~w~Succes!", 5000, 3);
  29. iarbPVAR [ playerid ] = gettime ( ) + 160;
  30. CP[playerid] = 0;
  31. return 1;
  32. }
  33. }
  34. }
  35. return 1;
  36. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement