help "KEY_WALK"
#3

Quote:
Originally Posted by karan007
Посмотреть сообщение
PHP код:
public OnPlayerKeyStateChange(playeridnewkeysoldkeys)
{
  if (
newkeys == KEY_WALK)
     {
            if(
IsPlayerInAnyVehicle(playerid))
            {
            new 
VehicleIDFloat:XFloat:YFloat:ZFloat:Angle;
            
GetPlayerPos(playeridXYZ);
            
VehicleID GetPlayerVehicleID(playerid);
            
GetVehicleZAngle(VehicleIDAngle);
            
SetVehiclePos(VehicleIDXYZ);
            
SetVehicleZAngle(VehicleIDAngle);
            
SetVehicleHealth(VehicleID,1000.0);
          }
        }
        return 
1;

Made some modification and here you go.
Ok . Thank
Reply


Messages In This Thread
help "KEY_WALK" - by quochuy - 27.04.2015, 14:23
Re: help "KEY_WALK" - by Karan007 - 27.04.2015, 14:32
Re: help "KEY_WALK" - by quochuy - 27.04.2015, 14:44
Re: help "KEY_WALK" - by Karan007 - 27.04.2015, 15:04

Forum Jump:


Users browsing this thread: 1 Guest(s)