Set Team to interior
#1

hey i know it goes under on player spawnbut dow can i do it i want to set team cops

gTeam[playerid] = COPS

to interior 6 when they spawn how can i do this
Reply
#2

pawn Код:
public OnPlayerSpawn(playerid)
{
if(gTeam[playerid] == COPS)
{
SetPlayerInterior(playerid,6);
SetPlayerPos(playerid,set here the position);
}
return 1;
}
Reply
#3

pawn Код:
public OnPlayerSpawn(playerid)
{
  if (gTeam[playerid] == COPS) SetPlayerInterior(playerid, 6);
  return 1;
}
Reply
#4

Ignore, was wrong and late.
Reply
#5

tryed that in meny differnt ways i just full from the sky thats why ive asked here

PS PrawkC ithin it is you wernt wrong you just added a extra varible
Reply
#6

You have to make sure you're setting their position to a spot inside that interior also.
Reply
#7

i have done that ive done everything that i should have but i still fall
Reply
#8

Show me your onplayerspawn code
Reply
#9

pawn Код:
public OnPlayerSpawn(playerid)
{
    KillTimer( Camrea[playerid][SpawnTimer] );
    SetCameraBehindPlayer(playerid);
    SetPlayerToTeamColour(playerid);
    if(gTeam[playerid] == COPS)
    {
        SetPlayerInterior(playerid, 6);
        SetPlayerPos(playerid, 254.7283,77.8465,1003.6406);
    }
    return 1;
}
here there is nothing wrong with it
Reply
#10

Where is that position? Like in game where would it be.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)