Szerző Téma: Carjump HELP!  (Megtekintve 622 alkalommal)

Carjump HELP!
« Dátum: 2011. Március 13. - 14:19:20 »
0 Show voters
Az lenne a kérdésem  hogy hogyan lehetne megvalósítani azt hogy ezt
 

if(newkeys & KEY_CROUCH)
    {
         new Float:x, Float:y, Float:z;
         GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
         SetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z + 0.3);
    }
return 1;

 
Megcsinálni hogy aki akarja /carjump-al ki be tudná kapcsolni a H gombra való ugratást....
Elõre is kösz....

Nem elérhető nyE

  • 1745
    • Profil megtekintése
Carjump HELP!
« Válasz #1 Dátum: 2011. Március 13. - 14:30:41 »
0 Show voters

CMD:carjump(playerid, params[])
{
    switch(GetPVarInt(playerid, \"carjump\"))
    {
        case 0: SetPVarInt(playerid, \"carjump\", 1), SendClientMessage(playerid, VALÓSZÍNÛ, \"Bekapcsolva!\");
case 1: SetPVarInt(playerid, \"carjump\", 0), SendClientMessage(playerid, VALÓSZÍNÛ, \"Kikapcsolva!\");
    }
    return 1;
}

 


if(GetPVarInt(playerid, \"carjump\") == 1 && newkeys & KEY_CROUCH)
{
    new Float:x, Float:y, Float:z;
    GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
    SetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z + 0.3);
}

Carjump HELP!
« Válasz #2 Dátum: 2011. Március 13. - 18:05:13 »
0 Show voters
Kössz....
Pont  ez kelett.
Zárok......

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal