How to make player goto jail on spawn
#2

Quote:
Originally Posted by Joe Torran C
How do i make it if playerinfo for player jail is 1 it sends him to jail,
I tried putting it in OnPlayerSpawn,
It sets my position and interior ect,
But my gamemode overides the interior so im just stook in sky,
How do i make it set the interior on the fs AFTER it has on the gamemode,
Try this:
pawn Код:
public SetPlayerSpawn(playerid)
{
        if(PlayerInfo[playerid][pJailed] == 1)
        {
          SetPlayerInterior(playerid, 6);
          PlayerInfo[playerid][pInt] = 6;
            SetPlayerPos(playerid,264.6288,77.5742,1001.0391);
            SendClientMessage(playerid, COLOR_LIGHTRED, "Back to prison.");
            return 1;
        }
}
Reply


Messages In This Thread
How to make player goto jail on spawn - by Torran - 11.03.2010, 14:42
Re: How to make player goto jail on spawn - by whitedragon - 11.03.2010, 14:45
Re: How to make player goto jail on spawn - by Flo_White - 11.03.2010, 14:45
Re: How to make player goto jail on spawn - by Torran - 11.03.2010, 14:47
Re: How to make player goto jail on spawn - by bajskorv123 - 11.03.2010, 15:25
Re: How to make player goto jail on spawn - by Rzzr - 11.03.2010, 15:29
Re: How to make player goto jail on spawn - by Torran - 11.03.2010, 15:32
Re: How to make player goto jail on spawn - by Rzzr - 11.03.2010, 15:51
Re: How to make player goto jail on spawn - by Flo_White - 12.03.2010, 20:13

Forum Jump:


Users browsing this thread: 3 Guest(s)