01.01.2012, 23:15
I was making a city hall so i made a CP outside a building in SF and it teleports them to city hall. after when the 1 second timer finishes they get tped back outside SF City Hall. How i fix this?
I want to use the yellow marker to exit and that works good
Example
*Tanush goes inside the Checkpoint outside SF building
*Tanush teleports there and been frozen 1 second and unfreezed
*Tanush takes one step and it auto teleports him outside the SF building
Onplayerinteriorchange
OnplayerenterdynamicCP
The settimerex("obj..
I want to use the yellow marker to exit and that works good
Example
*Tanush goes inside the Checkpoint outside SF building
*Tanush teleports there and been frozen 1 second and unfreezed
*Tanush takes one step and it auto teleports him outside the SF building
Onplayerinteriorchange
pawn Код:
if(insfhall[playerid] == 1)
{
insfhall[playerid] = 0;
SetTimerEx("SFhall",2000,0,"i",playerid);
}
pawn Код:
else if(checkpointid == cityhallout)
{
SetTimerEx("Obj",1000,0,"i",playerid);
TogglePlayerControllable(playerid,0);
SetPlayerInterior(playerid,3);
SetPlayerVirtualWorld(playerid,1);
SetPlayerFacingAngle(playerid,98.0517);
SetCameraBehindPlayer(playerid);
SetPlayerPos(playerid,387.0217,173.8155,1008.382);
}
pawn Код:
SendClientMessage(playerid,lightyellow,"You been frozen for 1 seconds because the objects were loading, you are free to move now");
TogglePlayerControllable(playerid,1);