How can i change spawn place ?
#1

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

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



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

Код:
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... ?
Reply
#4

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

Yes.
Reply
#5

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
Reply
#6

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);
Reply
#7

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
Reply
#8

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 ?
Reply
#9

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
Reply
#10

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


Forum Jump:


Users browsing this thread: 1 Guest(s)