If player is in any interior.
#2

pawn Код:
if(strcmp("/enter", cmdtext, true, 6) == 0)
    {
        if(IsPlayerInRangeOfPoint(playerid, 3.0, 1172.6001,-1323.2318,15.4027)
        || IsPlayerInRangeOfPoint(playerid, 3.0, 2033.9796,-1402.4280,17.2930)){
        TogglePlayerControllable(playerid,0);
        SetPlayerPos(playerid, -3436.1538,475.9111,57.6132);
        SetTimerEx("LoadObjects",1000,false,"i",playerid);
        }
        return 1;
    }

forward LoadObjects(playerid);
public LoadObjects(playerid)
{
    TogglePlayerControllable(playerid,1);
}
If the player still falls into the sea make the timer bigger than 1000ms (1sec). And make sure you got the player in the right interior.
Reply


Messages In This Thread
If player is in any interior. - by Ihsan_Cingisiz - 13.06.2010, 14:34
Re: If player is in any interior. - by KnooL - 13.06.2010, 14:36
Re: If player is in any interior. - by Ihsan_Cingisiz - 13.06.2010, 14:44
Re: If player is in any interior. - by Niixie - 13.06.2010, 14:48
Re: If player is in any interior. - by Ihsan_Cingisiz - 13.06.2010, 14:49
Re: If player is in any interior. - by Ihsan_Cingisiz - 13.06.2010, 14:55
Re: If player is in any interior. - by Agent Smith - 13.06.2010, 15:05
Re: If player is in any interior. - by Ihsan_Cingisiz - 13.06.2010, 15:08
Re: If player is in any interior. - by Agent Smith - 13.06.2010, 15:11
Re: If player is in any interior. - by Ihsan_Cingisiz - 13.06.2010, 15:30

Forum Jump:


Users browsing this thread: 1 Guest(s)