How to set player's Spawn inside the HQ?
#1

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.
Reply
#2

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

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

Sorry, i solved the problem, thank you very much
Reply
#5

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

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

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


Forum Jump:


Users browsing this thread: 1 Guest(s)