18.08.2009, 10:32
Hello I am presenting a small spawn which include the player on an airplane and they must choose their city once they get to climb into the cab enface two for it to respawn spawn original GM
Functions
native Aspawnp(playerid)
native Aspawnconnect(playerid)
native Aspawndisconnect(playerid)
native Aspawninit()
native AspawnSelectedMenuRow(playerid, row)
native AspawnExitMenu(playerid)
native AspawnEnterVehicle(playerid)
How to set up
you have the choice between FS and GM
If you want to FS Here's how
Code:
public OnFilterScriptInit() { Aspawninit(); return 1; }
Code:
public OnGameModeInit() { SetGameModeText("Blank Script"); AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); Aspawninit(); return 1; }
Now turn to other callback
Code:
public OnPlayerConnect(playerid) { Aspawnconnect(playerid); return 1; } public OnPlayerDisconnect(playerid, reason) { Aspawndisconnect(playerid); return 1; } public OnPlayerSpawn(playerid) { Aspawnp(playerid); return 1; } public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger) { AspawnEnterVehicle(playerid); return 1; } public OnPlayerSelectedMenuRow(playerid, row) { AspawnSelectedMenuRow(playerid, row); return 1; } public OnPlayerExitedMenu(playerid) { AspawnExitMenu(playerid); return 1; }
I give you a GM / FS for the test include
Script by cristab to create a common idea of AZZ
Coming in V1.1
The pickup would resume the aircraft at any time during the return for a sum of money
EDIT I forget to include the define there are two that you can change
Code:
#define Timer_Passager 18000 //here is the time the player passes through the plane #define site votresite.fr //here the url of your forum
Code:
#include <a_samp>
Code:
#include <Aspawn>
Sorry for my bad english I'm french and I do not know much English