SA-MP Forums Archive
How can i change spawn place ? - 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: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: How can i change spawn place ? (/showthread.php?tid=149028)



How can i change spawn place ? - Amer_Mondo - 20.05.2010

How can i change spawn place, in GF mode, and PENLS mode ? I'm beginner, so thanks anyway


Re: How can i change spawn place ? - iJumbo - 20.05.2010

public OnPlayerSpawn(playerid)
{
SetPlayerPos..................
return 1;
}



more info for setplayerpos here >>>>> https://sampwiki.blast.hk/wiki/SetPlayerPos


Re: How can i change spawn place ? - Amer_Mondo - 20.05.2010

Код:
public OnPlayerSpawn(playerid)
{
	if (gdebug >=1){printf("OnPlayerSpawn Playerid:%d", playerid);}
	if (teamcarlock)
	{
		TeamLockDoors(playerid);
	}
	InitLockDoors(playerid);
	if(accountplay)
	{
		if (gdebug >=1){printf("accountplay");}
		if (gPlayerAccount[playerid] == 0)
		{
			gTeam[playerid] = 0;
			GameTextForPlayer(playerid, "~w~Example ~n~~r~/regnick (password)~w~ example", 20000, 3);
			//SetPlayerInterior(playerid,0);
			SetPlayerInterior(playerid,3);
			PlayerInfo[playerid][pInt] = 3;
			SetPlayerPos(playerid,198.5,162.5,1003.0); - Is that cordinates for player spawn... ?



Re: How can i change spawn place ? - [MWR]Blood - 20.05.2010

Quote:
SetPlayerPos(playerid,198.5,162.5,1003.0); - Is that cordinates for player spawn... ?

Yes.


Re: How can i change spawn place ? - Amer_Mondo - 20.05.2010

Ok, i will try....Thanks !

In this code :
Код:
AddPlayerClass(264,656.1570,-1636.5410,15.8617,6.7094,0,0,0,0,0,0); //
What is the X Cordinate, Y cordinate, and Z cordinate ?

In good order


Re: How can i change spawn place ? - [XST]O_x - 20.05.2010

Quote:
Originally Posted by Beginner....
Ok, i will try....Thanks !

In this code :
Код:
AddPlayerClass(264,656.1570,-1636.5410,15.8617,6.7094,0,0,0,0,0,0); //
What is the X Cordinate, Y cordinate, and Z cordinate ?

In good order
AddPlayerClass(skin, Float, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo);


Re: How can i change spawn place ? - iJumbo - 20.05.2010

AddPlayerClass(264,656.1570,-1636.5410,15.8617,6.7094,0,0,0,0,0,0); //


(skin, Float, Float:y, Float:z, Float:Angle, weapon1, weapon1_ammo, weapon2, weapon2_ammo, weapon3, weapon3_ammo)

font > https://sampwiki.blast.hk/wiki/AddPlayerClass


Re: How can i change spawn place ? - Amer_Mondo - 20.05.2010

SetPlayerPos(playerid,198.5,162.5,1003.0);

Im change a cordinates,but it doesnt work...Its spawn on old place, on server :S I'm change old AMX AND PWN with new.... ??

Why it doesnt work ?


Re: How can i change spawn place ? - [MWR]Blood - 20.05.2010

Quote:
Originally Posted by Beginner....
SetPlayerPos(playerid,198.5,162.5,1003.0);

Im change a cordinates,but it doesnt work...Its spawn on old place, on server :S I'm change old AMX AND PWN with new.... ??

Why it doesnt work ?
Nope, you didn't.
X, Y , Z:
656.1570,-1636.5410,15.8617


Re: How can i change spawn place ? - Amer_Mondo - 20.05.2010

Yes, i m put it in my script....
Код:
SetPlayerPos(playerid,198.5,162.5,1003.0);
Its doesnt work :S