[HELP] Extra Speed
#1

/speed = He goes 0.3 faster then normal speed
/normal = Turn the super speed of...

But the porblem is that he goes 3.0 just to north and he go 3.0 just one time when i type "/speed"

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if (strcmp("/speed", cmdtext, true, 10) == 0)
    {
        new Float:x, Float:y, Float:z;
        GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
        SetVehicleVelocity(GetPlayerVehicleID(playerid) ,x ,y+0.3 ,z);
        return 1;
    }
   
    if (strcmp("/normal", cmdtext, true, 10) == 0)
    {
        new Float:x, Float:y, Float:z;
        GetVehicleVelocity(GetPlayerVehicleID(playerid), x, y, z);
        SetVehicleVelocity(GetPlayerVehicleID(playerid) ,x ,y ,z);
        return 1;
    }
    return 0;
}
Reply


Messages In This Thread
[HELP] Extra Speed - by Larsey123IsMe - 07.01.2011, 08:53
Re: [HELP] Extra Speed - by bhaveshnande - 07.01.2011, 09:11
Re: [HELP] Extra Speed - by Larsey123IsMe - 07.01.2011, 09:37
Re: [HELP] Extra Speed - by veyron - 07.01.2011, 10:51
Re: [HELP] Extra Speed - by Voldemort - 07.01.2011, 11:01
Re: [HELP] Extra Speed - by veyron - 07.01.2011, 11:56

Forum Jump:


Users browsing this thread: 2 Guest(s)