Advertisement
Guest User

Untitled

a guest
Apr 30th, 2017
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.08 KB | None | 0 0
  1. if(dialogid == DIALOG_619)
  2. {
  3. if( !response )
  4. return 1;
  5. new money,result[ 64 ];
  6.  
  7. if(listitem == 0)
  8. {
  9. money = 500;
  10. strcat( result, "Folosire telefon la volan.", sizeof( result ) );
  11. }
  12. if(listitem == 1)
  13. {
  14. new giveplayerid = TicketPlayer[ playerid ];
  15. money = 900;
  16. strcat( result, "Condus neregulamentar.", sizeof( result ) );
  17. format(gString, sizeof(gString), "I-ai confiscat licenta de condus lui %s.", GetName(giveplayerid));
  18. SendClientMessage(playerid, COLOR_SYN, gString);
  19. format(gString, sizeof(gString), "Officer %s ti-a confiscat licenta de condus pentru 3 ore.", GetName(playerid));
  20. SendClientMessage(giveplayerid, COLOR_SYN, gString);
  21. PlayerInfo[giveplayerid][pDrivingLic] = -3;
  22. Update(giveplayerid,pDrivingLicx);
  23. }
  24. if(listitem == 2)
  25. {
  26. money = 700;
  27. strcat( result, "Oprire|Stationare|Parcare Neregulamentar.", sizeof( result ) );
  28. }
  29. if(listitem == 3)
  30. {
  31. money = 300;
  32. strcat( result, "Conducerea vehiculelor cu roti sparte.", sizeof( result ) );
  33. }
  34. if(listitem == 4)
  35. {
  36. new giveplayerid = TicketPlayer[ playerid ];
  37. money = 1000;
  38. strcat( result, "Folosire NOS.", sizeof( result ) );
  39. format(gString, sizeof(gString), "I-ai confiscat licenta de condus lui %s.", GetName(giveplayerid));
  40. SendClientMessage(playerid, COLOR_SYN, gString);
  41. format(gString, sizeof(gString), "Officer %s ti-a confiscat licenta de condus pentru 3 ore.", GetName(playerid));
  42. SendClientMessage(giveplayerid, COLOR_SYN, gString);
  43. PlayerInfo[giveplayerid][pDrivingLic] = -3;
  44. Update(giveplayerid,pDrivingLicx);
  45. }
  46. if(listitem == 5)
  47. {
  48. money = 800;
  49. strcat( result, "Folosire Hidraulice.", sizeof( result ) );
  50. }
  51. if(listitem == 6)
  52. {
  53. money = 350;
  54. strcat( result, "Faruri stinse (dupa ora 19:00).", sizeof( result ) );
  55. }
  56. if(listitem == 7)
  57. {
  58. new giveplayerid = TicketPlayer[ playerid ];
  59. money = 550;
  60. strcat( result, "Condus sub influenta alcoolului.", sizeof( result ) );
  61. format(gString, sizeof(gString), "I-ai confiscat licenta de condus lui %s.", GetName(giveplayerid));
  62. SendClientMessage(playerid, COLOR_SYN, gString);
  63. format(gString, sizeof(gString), "Officer %s ti-a confiscat licenta de condus pentru 3 ore.", GetName(playerid));
  64. SendClientMessage(giveplayerid, COLOR_SYN, gString);
  65. PlayerInfo[giveplayerid][pDrivingLic] = -3;
  66. Update(giveplayerid,pDrivingLicx);
  67. }
  68. if(listitem == 8)
  69. {
  70. money = 850;
  71. strcat( result, "Depasirea limitei de viteza cu -50 km/h.", sizeof( result ) );
  72. }
  73. if(listitem == 9)
  74. {
  75. new giveplayerid = TicketPlayer[ playerid ];
  76. money = 1200;
  77. strcat( result, "Depasirea limitei de viteza cu 50+ km/h.", sizeof( result ) );
  78. format(gString, sizeof(gString), "I-ai confiscat licenta de condus lui %s.", GetName(giveplayerid));
  79. SendClientMessage(playerid, COLOR_SYN, gString);
  80. format(gString, sizeof(gString), "Officer %s ti-a confiscat licenta de condus pentru 3 ore.", GetName(playerid));
  81. SendClientMessage(giveplayerid, COLOR_SYN, gString);
  82. PlayerInfo[giveplayerid][pDrivingLic] = -3;
  83. Update(giveplayerid,pDrivingLicx);
  84. }
  85. new giveplayerid = TicketFor[ playerid ];
  86. if( !IsPlayerConnected( giveplayerid ) )
  87. return 1;
  88.  
  89. new giveplayer[ MAX_PLAYER_NAME ];
  90. GetPlayerName( giveplayerid, giveplayer, MAX_PLAYER_NAME );
  91.  
  92. if(PlayerInfo[giveplayerid][pLevel] < 4)
  93. return SendClientMessage(playerid, COLOR_WHITE, "{0066FF}Ticket: {FFFFFF}Nu poti da amenda jucatorilor cu level 3!");
  94.  
  95. new string[128];
  96. format(string, sizeof(string), "* I-ai dat o amenda lui %s in valoare de $%d, motiv: %s", giveplayer, money, (result));
  97. SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
  98. format(string, sizeof(string), "* Offiterul %s ti-a dat o amenda in valoare de $%d, motiv: %s", GetName(playerid), money, (result));
  99. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  100. format(string, sizeof(string), "* Scrie /accept ticket %d, pentru a plati amenda.", playerid);
  101. SendClientMessage(giveplayerid, COLOR_LIGHTBLUE, string);
  102. TicketMoney[playerid][giveplayerid] = 1;
  103. TicketMoney[giveplayerid][playerid] = money;
  104. return 1;
  105. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement