SA-MP Forums Archive
[Include] [inc]SpawnChoice for 0.2X - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Filterscripts (https://sampforum.blast.hk/forumdisplay.php?fid=17)
+---- Forum: Includes (https://sampforum.blast.hk/forumdisplay.php?fid=83)
+---- Thread: [Include] [inc]SpawnChoice for 0.2X (/showthread.php?tid=100783)



[inc]SpawnChoice for 0.2X - cristab - 06.10.2009

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

lien pastebin
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;
}



Re: [inc]SpawnChoice for 0.2X - MenaceX^ - 06.10.2009

What's the <?php tag for?


Re: [inc]SpawnChoice for 0.2X - kokkie20 - 06.10.2009

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?


Re: [inc]SpawnChoice for 0.2X - cristab - 06.10.2009

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

edit

PHP Tag removed