[Include] [inc]SpawnChoice for 0.2X
#1

SpawnChoice.inc

Hello I present a include that will allow 0.2x server for select your city and place of City to spawn is a beast that include all uses Menu System

and voila a small GM which I add the include

Code:
#include <a_samp>
#include <SpawnChoice>

main()
{
	print("\n----------------------------------");
	print(" SpawnChoice");
	print("----------------------------------\n");
}

public OnGameModeInit()
{
	SpawnInit();
	SetGameModeText("Blank Script");
	AddPlayerClass(0, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0);
	return 1;
}
public OnGameModeExit()
{
	return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
	SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
	SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
	return 1;
}

public OnPlayerConnect(playerid)
{
 SpawnConnect(playerid);
	return 1;
}
public OnPlayerSpawn(playerid)
{
 SpawnPlayerSpawn(playerid);
	return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
	if (strcmp("/changespawn", cmdtext, true) == 0)
	{
		SpawnChange(playerid);
		return 1;
	}
	return 0;
}
public OnPlayerSelectedMenuRow(playerid, row)
{
 SpawnMenu(playerid,row);
	return 1;
}
public OnPlayerExitedMenu(playerid)
{
 SpawnExitMenu(playerid);
	return 1;
}
Reply
#2

What's the <?php tag for?
Reply
#3

Quote:
Originally Posted by MenaceX^
What's the <?php tag for?
i guess to show the erm how u call this?
the coloring of the code?
Reply
#4

yes it is just to get the colors I have stated that in the post sorry

edit

PHP Tag removed
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)