How do I create a spot to enter a certain interior...
#10

PHP код:
#include <a_samp>

#define PRESSED(%0) \
    
(((newkeys & (%0)) == (%0)) && ((oldkeys & (%0)) != (%0)))

public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
    if (
PRESSED(KEY_SECONDARY_ATTACK))
    {
        if(
IsPlayerInRangeOfPoint(playerid2.0627.4248, -571.876017.8942))
        {
            
SetPlayerPos(playerid, -322.197998,302.497985,999.148437);
            
SetPlayerInterior(playerid5); 
            
SetPlayerVirtualWorld(playerid0); 
            
SetCameraBehindPlayer(playerid);
        }
        else if(
IsPlayerInRangeOfPoint(playerid,2.0, -322.197998,302.497985,999.148437))
        {
            
SetPlayerPos(playerid627.4248, -571.876017.8942);
            
SetPlayerInterior(playerid0);
            
SetPlayerVirtualWorld(playerid0);
            
SetCameraBehindPlayer(playerid);
        }
    }
    return 
1;

Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)