25.01.2016, 19:42
Are you sure that this condition is true?
Try to add a printf function to debug that part of code:
Try to add a printf function to debug that part of code:
PHP код:
printf("OnPlayerSpawn: from_reg[%d] = %d", playerid, from_reg[playerid]); // <--- new line
if( from_reg[playerid] )
{
from_reg[playerid] = false;
SetPlayerVirtualWorld(playerid, 0);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid, 2122.5142, 1891.6398, 10.4237);
return 1;
}

