Car Hop
#2

pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
    if(strcmp(cmdtext, "/carhop", true) == 0)
    {
      if(IsPlayerInAnyVehicle(playerid))
      {
        new Float:X, Float:Y, Float:Z;
            GetVehicleVelocity(GetPlayerVehicleID(playerid), X,Y,Z);
            SetVehicleVelocity(GetPlayerVehicleID(playerid), X,Y,Z+10);
            return 1;
        }

    }
    else
    {
      SendClientMessage(playerid, 0xFFFFF, "You are not in a vehicle");
        return 1;
    }
    return 0;
}
The scrip hasent been tested. Hope it works
Reply


Messages In This Thread
Car Hop - by stieben - 23.01.2010, 17:42
Re: Car Hop - by FireFox_ - 23.01.2010, 17:50
Re: Car Hop - by stieben - 23.01.2010, 18:10
Re: Car Hop - by stieben - 23.01.2010, 18:16
Re: Car Hop - by FireFox_ - 23.01.2010, 18:30
Re: Car Hop - by braduz - 23.01.2010, 20:54
Re: Car Hop - by stieben - 24.01.2010, 12:01
Re: Car Hop - by mansonh - 24.01.2010, 12:17
Re: Car Hop - by stieben - 24.01.2010, 13:27
Re: Car Hop - by MadeMan - 24.01.2010, 13:55

Forum Jump:


Users browsing this thread: 1 Guest(s)