help [make the slide high]
#1

Hello Every one
guys i want know how to make slide high jumbing high i dont know where in script
please help me tell me its where ?
PHP код:
public OnPlayerDisconnect(playeridreason)
{
    if(
GetPVarInt(playerid,"roped") == 1)
        {
            for(new 
destr=0;destr<=ropelength;destr++)
                {
                    
DestroyObject(r0pes[playerid][destr]);
                }
        }
    return 
1;
}
public 
OnPlayerDeath(playeridkilleridreason)
{
        if(
GetPVarInt(playerid,"roped") == 1)
        {
            for(new 
destr2=0;destr2<=ropelength;destr2++)
                {
                    
DestroyObject(r0pes[playerid][destr2]);
                }
            
SetPVarInt(playerid,"roped",0);
            
DisablePlayerCheckpoint(playerid);
        }
        return 
1;
}
public 
OnVehicleDeath(vehicleidkillerid)
{
        if(
GetVehicleModel(vehicleid) == chopperid)
        {
            for(new 
shg=0;shg<=players;shg++)
            {
                if(
GetPVarInt(shg,"chop_id") == vehicleid && GetPVarInt(shg,"roped") == 1)
                {
                    
DisablePlayerCheckpoint(shg);
                    
SetPVarInt(shg,"roped",0);
                    
DisablePlayerCheckpoint(shg);
                    
ClearAnimations(shg);
                    
TogglePlayerControllable(shg,1);
                    for(new 
destr3=0;destr3<=ropelength;destr3++)
                                {
                                    
DestroyObject(r0pes[shg][destr3]);
                                }
                        }
                }
        }
        return 
1;
}
forward syncanim(playerid);
public 
syncanim(playerid)
{
        if(
GetPVarInt(playerid,"roped") == 0) return 0;
        
SetTimerEx("syncanim",dur,0,"i",playerid);
        
ApplyAnimation(playerid,"ped","abseil",4.0,0,0,0,1,0);
        return 
1;
}
public 
OnPlayerEnterVehicle(playeridvehicleidispassenger)
{
        if(
GetVehicleModel(vehicleid) == chopperid && ispassenger)
        {
                
SetPVarInt(playerid,"chop_id",GetPlayerVehicleID(playerid));
                
SetPVarInt(playerid,"roped",0);
        }
        else 
SetPVarInt(playerid,"chop_id",0);
        return 
1;
}
public 
OnPlayerEnterCheckpoint(playerid)
{
    if(
GetPVarInt(playerid,"roped") == && GetPlayerSkin(playerid) == skinid)
    {
        
SetPVarInt(playerid,"roped",0);
        
SetPVarInt(playerid,"chop_id",0);
        
ClearAnimations(playerid);
        
TogglePlayerControllable(playerid,0);
        
TogglePlayerControllable(playerid,1);
        
DisablePlayerCheckpoint(playerid);
        for(new 
destr4=0;destr4<=ropelength;destr4++)
                {
                    
DestroyObject(r0pes[playerid][destr4]);
                }
        }
    return 
1;
}
public 
OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
        if(
GetPlayerSkin(playerid) == skinid && GetPVarInt(playerid,"roped") == && GetPlayerVehicleSeat(playerid) != && IsPlayerInAnyVehicle(playerid) && (newkeys KEY_LOOK_BEHIND || newkeys == KEY_LOOK_BEHIND))
        {
                
GetPlayerPos(playerid,pl_pos[playerid][0],pl_pos[playerid][1],pl_pos[playerid][2]);
                
MapAndreas_FindZ_For2DCoord(pl_pos[playerid][0],pl_pos[playerid][1],pl_pos[playerid][3]);
                
pl_pos[playerid][4] = floatsub(pl_pos[playerid][2],pl_pos[playerid][3]);
                if(
pl_pos[playerid][4] >= ropelength) return SendClientMessage(playerid,0xAA3333AA,"You are too scared to slide from this height");
                if(
pl_pos[playerid][4] <= 2) return RemovePlayerFromVehicle(playerid);
                
SetPVarInt(playerid,"roped",1);
                
SetPlayerCheckpoint(playerid,pl_pos[playerid][0],pl_pos[playerid][1],floatsub(pl_pos[playerid][3],offsetz),30);
                
SetPlayerPos(playerid,pl_pos[playerid][0],pl_pos[playerid][1],floatsub(pl_pos[playerid][2],2));
                
SetPlayerVelocity(playerid,0,0,0);
                for(new 
rep=0;rep!=10;rep++) ApplyAnimation(playerid,"ped","abseil",4.0,0,0,0,1,0);
                for(new 
cre=0;cre<=pl_pos[playerid][4];cre++)
                {
                    
r0pes[playerid][cre] = CreateObject(3004,pl_pos[playerid][0],pl_pos[playerid][1],floatadd(pl_pos[playerid][3],cre),87.640026855469,342.13500976563350.07507324219);
                }
                
SetTimerEx("syncanim",dur,0,"i",playerid);
        }
        return 
1;

Reply
#2

Bumb
Reply
#3

Bumb
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)