22.04.2011, 12:11
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 }