Stay in CP after pos
#2

new enterCP[MAX_PLAYERS];

PHP код:
public OnPlayerEnterDynamicCP(playeridcheckpointid)
{
    if(!
enterCP[playerid])
    {
    if(
checkpointid == h[1])//Enter
    
{
        
SetPlayerPos(playerid238.727615138.6340331003.023437);
        
SetPlayerFacingAngle(playerid0);
        
SetPlayerInterior(playerid3);
        
enterCP[playerid] = true;
    }
    if(
checkpointid == h[2]) //Exit
    
{
        
SetPlayerPos(playerid2287.0329582432.36718710.820312);
        
SetPlayerFacingAngle(playerid0);
        
SetPlayerInterior(playerid0);
        
enterCP[playerid] = true;
    }
    }
    return 
1;
}
public 
OnPlayerLeaveDynamicCP(playeridcheckpointid)
{
    if(
checkpointid == h[1])//Enter
    
{
        
enterCP[playerid] = false;
    }
    if(
checkpointid == h[2]) //Exit
    
{
        
enterCP[playerid] = false;
    }
    return 
1;

Reply


Messages In This Thread
Stay in CP after pos - by CrazyChoco - 23.01.2015, 22:12
Re: Stay in CP after pos - by Matess - 23.01.2015, 22:18
Re: Stay in CP after pos - by CrazyChoco - 23.01.2015, 22:54
Re: Stay in CP after pos - by CrazyChoco - 25.01.2015, 16:47
Re: Stay in CP after pos - by ATGOggy - 25.01.2015, 16:52

Forum Jump:


Users browsing this thread: 1 Guest(s)