Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <a_samp>
- #include <modelPreview>
- new planelist;
- public OnFilterScriptInit()
- {
- planelist = LoadModelSelectionList("planes.txt");
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- if(strcmp(cmdtext, "/plane", true) == 0)
- {
- ShowModelSelectionMenu(playerid, planelist, "->Planes<-");
- return 1;
- }
- return 0;
- }
- public OnPlayerModelSelection(playerid, listid, modelid)
- {
- if(listid == planelist)
- {
- SpawnVehicle_InfrontOfPlayer(playerid, modelid, -1, -1);
- return 1;
- }
- return 1;
- }
- ---- planes.txt -----------------
- 460 16.0 0.0 -55.0
- 476 16.0 0.0 -55.0
- 511 16.0 0.0 -55.0
- 512 16.0 0.0 -55.0
- 513 16.0 0.0 -55.0
- 519 16.0 0.0 -55.0
- 520 16.0 0.0 -55.0
- 553 16.0 0.0 -55.0
- 577 16.0 0.0 -55.0
- 592 16.0 0.0 -55.0
- 593 16.0 0.0 -55.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement