Guest User

Drift Sistem

a guest
Feb 9th, 2018
320
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.85 KB | None | 0 0
  1. /*
  2. DRIFT SISTEM BY STEFKE
  3. */
  4. #include < a_samp >
  5. #include < fdialog >
  6. #include < YSI\y_commands >
  7. ////
  8. #define SCM SendClientMessage
  9. #define SPD ShowPlayerDialog
  10. //////////////////////////////////////////////////////////////////
  11. #define BELA "{FFFFFF}"
  12. #define CRVENA "{F81414}"
  13. #define SPLAVA "{00C0FF}"
  14. #define PLAVA "{3399FF}"
  15.  
  16.  
  17.  
  18. YCMD:driftmode(playerid, params[], help)
  19. {
  20. #pragma unused help
  21. if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"***"BELA"Luda Kuca:"CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
  22. if(PlayerInfo[playerid][pVlasnik] != 1) return SCM(playerid,-1,""PLAVA"(("BELA" Luda Kuca "PLAVA"))"SIVA"Samo Vlasnik!");
  23. if(AdminDuty[playerid] == 0) return SCM(playerid,-1,""PLAVA"(("BELA" Luda Kuca "PLAVA"))"SIVA"Morate biti na admin duznosti!");
  24. SPD(playerid,321, DIALOG_STYLE_LIST, ""BELA"Drift Mode By Stefke", "Drift Mode 1 (Gravity 0.006)\nDrift Mode 2 (Gravity 0.005)\nDrift Mode 3 (Gravity 0.004)\nNormal Mode (Gravity 0.008)", "Odaberi", "Izlaz");
  25. return 1;
  26. }
  27.  
  28. ///////
  29. fDialog(321)
  30. {
  31. if(!response) return 1;
  32. switch(listitem)
  33. {
  34. case 0:
  35. {
  36. SetGravity(0.006);
  37. SCM(playerid,-1,""SPLAVA"*** "BELA"Uspesno ste upalili drift handling "CRVENA"(0.006 Gravity)"BELA" na serveru, uzivajte!");
  38. }
  39. case 1:
  40. {
  41. SetGravity(0.005);
  42. SCM(playerid,-1,""SPLAVA"*** "BELA"Uspesno ste upalili drift handling "CRVENA"(0.005 Gravity)"BELA" na serveru, uzivajte!");
  43. }
  44. case 2:
  45. {
  46. SetGravity(0.004);
  47. SCM(playerid,-1,""SPLAVA"*** "BELA"Uspesno ste upalili drift handling "CRVENA"(0.004 Gravity)"BELA" na serveru, uzivajte!");
  48. }
  49. case 3:
  50. {
  51. SetGravity(0.008);
  52. SCM(playerid,-1,""SPLAVA"*** "BELA"Uspesno ste ugasili drift handling "CRVENA"(0.008 Normal Gravity)"BELA" na serveru, uzivajte!");
  53. }
  54.  
  55. }
  56. return 1;
  57. }
Add Comment
Please, Sign In to add comment