SA-MP Forums Archive
How to set player's Spawn inside the HQ? - 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 to set player's Spawn inside the HQ? (/showthread.php?tid=197857)



How to set player's Spawn inside the HQ? - TV94 - 10.12.2010

How to set player's Spawn inside the HQ? So i have this one:
if (PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6)//Barzini spawn
{
SetPlayerToTeamColor(playerid);
SetPlayerInterior(playerid, 0);
SetPlayerPos(playerid, 964.0579,-53.2825,1001.1246);
PlayerInfo[playerid][pInt] = 240;
return 1;
}

But i don't know what coords i have to set on the line: SetPlayerPos, which will make the member of the Gang spawn inside his HQ. When i write this coords it have no spawn, is falls down in the air. Please help me.

If it will help:
1930.6481,1345.2162,9.9688 - these are the coords outside the HQ (where is the "i")
964.106994,-53.205497,1001.124572 - these are the coords of the HQ inside

Thank you.


Re: How to set player's Spawn inside the HQ? - Mauzen - 10.12.2010

You also have to put the player into the right interior. You currently set him in interior 0, this is the normal outside world.
Find out the right id and change the 0 in SetPlayerInterior
this page might help you: https://sampwiki.blast.hk/wiki/Interior


Re: How to set player's Spawn inside the HQ? - TV94 - 10.12.2010

It says:
C:\Users\GTA\Desktop\SA-MP\gamemodes\eRP.pwn(2874) : warning 213: tag mismatch
C:\Users\GTA\Desktop\SA-MP\gamemodes\eRP.pwn(2874) : warning 202: number of arguments does not match definition
C:\Users\GTA\Desktop\SA-MP\gamemodes\eRP.pwn(2874) : warning 202: number of arguments does not match definition
any ideas?


Re: How to set player's Spawn inside the HQ? - TV94 - 10.12.2010

Sorry, i solved the problem, thank you very much


Re: How to set player's Spawn inside the HQ? - TV94 - 10.12.2010

Anyone know how to set player's angle after spawning him? so the players now are with the right side to the /exit | /enter, anyone knows how to fix it? i want the players spawn's with the back to the /exit | /enter


Re: How to set player's Spawn inside the HQ? - Mauzen - 10.12.2010

You can use SetPlayerFacingAngle (https://sampwiki.blast.hk/wiki/SetPlayerFacingAngle), under the other code.

Btw, please edit your post instead of posting three times in a row.


Re: How to set player's Spawn inside the HQ? - TV94 - 10.12.2010

Thx, it really worked, i'm sorry for my posts