Advertisement
Guest User

jaspojas

a guest
Feb 27th, 2015
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1. YCMD:pojas(playerid, params[], help)
  2. {
  3. if(IsPlayerInAnyVehicle(playerid) == 0)
  4. {
  5. SendClientMessage(playerid, -1, "Morate biti u vozilu da bi ste koristili ovu komandu!");
  6. return 1;
  7. }
  8. new string[50 + MAX_PLAYER_NAME];
  9. if(IsPlayerInAnyVehicle(playerid) == 1 && SeatbeltStatus[playerid] == 0)
  10. {
  11. SeatbeltStatus[playerid] = 1;
  12. {
  13. format(string,sizeof(string), "*%s stavlja pojas.", GetName(playerid), params);
  14. ProxDetector(20.0, playerid, string, LJUBICASTA, LJUBICASTA, LJUBICASTA, LJUBICASTA, LJUBICASTA);
  15. SendClientMessage(playerid, COLOR_WHITE, "Stavio si pojas.");
  16. }
  17.  
  18. }
  19. else if(IsPlayerInAnyVehicle(playerid) == 1 && SeatbeltStatus[playerid] == 1)
  20. {
  21. SeatbeltStatus[playerid] = 0;
  22. {
  23. format(string,sizeof(string), "*%s skida pojas.", GetName(playerid), params);
  24. ProxDetector(20.0, playerid, string, LJUBICASTA, LJUBICASTA, LJUBICASTA, LJUBICASTA, LJUBICASTA);
  25. SendClientMessage(playerid, COLOR_WHITE, "Skinuo si pojas");
  26. }
  27. }
  28. return 1;
  29. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement