25.08.2013, 18:18
Anybody knows what is the problem? Because when i press ,,spawn'' i spawn in the air....
http://pastebin.com/WQcZE0m3
http://pastebin.com/WQcZE0m3
{262.9825,77.4500,1001.0391}, // CHANGE ME
{262.9825,77.4500,1001.0391}, // CHANGE ME
{262.9825,77.4500,1001.0391} // CHANGE ME
public OnPlayerSpawn(playerid)
{
if(InJail[playerid] == 1)
{
SetPlayerVirtualWorld(playerid, 0);
SetPlayerInterior(pId, 3);
SetPlayerToTeamColour(playerid);
new rand = random(sizeof(JailCellSpawns));
SetPlayerPos(playerid, JailCellSpawns[rand][0], JailCellSpawns[rand][1], JailCellSpawns[rand][2]);
}
return 1;
}