Teraz som to robil cez OnPlayerRequestClass,keď hráč nieje vo väzení tak ho to spawne na to miesto kde so nastavil a ani neukáže tie šípky a spawn tlačidlo,to je dobre,lenže teraz je problém v tom,že keď je hráč vo väzení a zomrie,tak ho to aj tak spawne na to defaultne miesto,a nie do väzenie.
public OnPlayerRequestClass(playerid, classid)
{
if(jail[playerid] > 0)
{
SetPlayerInterior(playerid,3);
SetSpawnInfo(playerid,0,0,198.3796, 160.8905, 1003.03,0,0,0,0,0,0,0);
SpawnPlayer(playerid);
TogglePlayerSpectating(playerid, true);
}
else
{
SetSpawnInfo(playerid,0,0,1108.9209,-1794.2789,16.5938,97.3778,0,0,0,0,0,0);
SpawnPlayer(playerid);
TogglePlayerSpectating(playerid, true);
}
return 1;
}