Guest User

Untitled

a guest
Sep 18th, 2020
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.54 KB | None | 0 0
  1. CMD:car(arg, params[]) {
  2.  
  3. new veh_id[32], Float:x, Float:y, Float:z;
  4.  
  5. if(sscanf(params, "s[32]", veh_id))
  6. return SendClientMessage(arg, -1, "Koristi: /car [ (Sultan/Huntley/NRG) ]");
  7.  
  8. GetPlayerPos(arg, x, y, z);
  9.  
  10. if(AdminVozilo[arg] > 0) {
  11. DestroyVehicle(AdminVozilo[arg]);
  12. SendClientMessage(arg, -1, "Unistili ste vase admin vozilo");
  13. AdminVozilo[arg] = 0;
  14. return false;
  15. }
  16.  
  17. if(AdminVozilo[arg] == 0) {
  18.  
  19. if(strfind(veh_id, "Sultan", true) != -1) {
  20. AdminVozilo[arg] = CreateVehicle(560, x, y+2, z, 0, -1, -1, 0);
  21. PutPlayerInVehicle(arg, AdminVozilo[arg], 0);
  22. SendClientMessage(arg, -1, "Stvorili ste vozilo marke Sultan");
  23. }
  24.  
  25. if(strfind(veh_id, "Huntley", true) != -1) {
  26. AdminVozilo[arg] = CreateVehicle(579, x, y+2, z, 0, -1, -1, 0);
  27. PutPlayerInVehicle(arg, AdminVozilo[arg], 0);
  28. SendClientMessage(arg, -1, "Stvorili ste vozilo marke Huntley");
  29. }
  30.  
  31. if(strfind(veh_id, "NRG", true) != -1) {
  32. AdminVozilo[arg] = CreateVehicle(522, x, y+2, z, 0, -1, -1, 0);
  33. PutPlayerInVehicle(arg, AdminVozilo[arg], 0);
  34. SendClientMessage(arg, -1, "Stvorili ste vozilo marke NRG");
  35. }
  36.  
  37. }
  38.  
  39. return true;
  40. }
Advertisement
Add Comment
Please, Sign In to add comment