Advertisement
Guest User

d0

a guest
Jan 11th, 2013
181
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Pawn 0.79 KB | None | 0 0
  1. #include <a_samp>
  2.  
  3. #include <modelPreview>
  4.  
  5. new planelist;
  6. public OnFilterScriptInit()
  7. {
  8.     planelist = LoadModelSelectionList("planes.txt");
  9.     return 1;
  10. }
  11.  
  12. public OnPlayerCommandText(playerid, cmdtext[])
  13. {
  14.     if(strcmp(cmdtext, "/plane", true) == 0)
  15.     {
  16.         ShowModelSelectionMenu(playerid, planelist, "->Planes<-");
  17.         return 1;
  18.     }
  19.     return 0;
  20. }
  21.  
  22. public OnPlayerModelSelection(playerid, listid, modelid)
  23. {
  24.     if(listid == planelist)
  25.     {
  26.         SpawnVehicle_InfrontOfPlayer(playerid, modelid, -1, -1);
  27.         return 1;
  28.     }
  29.     return 1;
  30. }
  31.  
  32.  
  33. ---- planes.txt -----------------
  34. 460 16.0 0.0 -55.0
  35. 476 16.0 0.0 -55.0
  36. 511 16.0 0.0 -55.0
  37. 512 16.0 0.0 -55.0
  38. 513 16.0 0.0 -55.0
  39. 519 16.0 0.0 -55.0
  40. 520 16.0 0.0 -55.0
  41. 553 16.0 0.0 -55.0
  42. 577 16.0 0.0 -55.0
  43. 592 16.0 0.0 -55.0
  44. 593 16.0 0.0 -55.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement