[INC]Aspawn V1.0 -
cristab - 18.08.2009
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;
}
If you want to GM Here's how
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;
}
I share a GM empty to show you
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;
}
Here are all remark accept
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
You can also remove them from your script
and replace it with
it is called in the include
Sorry for my bad english I'm french and I do not know much English
Re: [INC]Aspawn V1.0 -
nuriel8833 - 18.08.2009
Can you explain what is that please
Re: [INC]Aspawn V1.0 -
cristab - 18.08.2009
is to make introduction of the server's rules prevent new looking if / help / commands ect on the few make it afiche this text is basically just like its not his special function