Simple Help!
#6

TeHe, it worked, but you forgot the SetPlayerInterior(playerid, 0); it spawned me back the the spawn point, but I was in the void lol.

Код:
stock SetJail(playerid,bool:Jailed = true) {
    if(Jailed) {
        new
            j=random(sizeof(g_fJailPos));
        SetPlayerInterior(playerid,3);
        SetPlayerPos(playerid,g_fJailPos[j][0],g_fJailPos[j][1],g_fJailPos[j][2]);
        SetPlayerFacingAngle(playerid,354.7243);
        #if !defined NO_JAIL_COUNT
        PlayerInfo[playerid][JailCount]=0;
        #endif
        ResetPlayerWeapons(playerid);
    }
    else {
        SpawnPlayer(playerid);
        SetPlayerInterior(playerid,0);
        #if !defined NO_JAIL_COUNT
        PlayerInfo[playerid][JailCount]=-1;
        #endif
    }
Reply


Messages In This Thread
Simple Help! - by Odyssey - 22.04.2011, 11:57
Re: Simple Help! - by Odyssey - 22.04.2011, 12:01
Re: Simple Help! - by linuxthefish - 22.04.2011, 12:05
Re: Simple Help! - by Odyssey - 22.04.2011, 12:07
Re: Simple Help! - by linuxthefish - 22.04.2011, 12:07
Re: Simple Help! - by Odyssey - 22.04.2011, 12:11

Forum Jump:


Users browsing this thread: 2 Guest(s)