OnPlayerKeyStateChange QUICK HELP
#1

pawn Код:
if(newkeys == KEY_HORN) //Its not suppose to say horn. what do I put here for the button H
    {
        new
            Float:x,
            Float:y,
            Float:z;
        GetPlayerPos(playerid, x, y, z);
        SetPlayerPos(playerid, x, y, z + 10.0);
    }
  if(newkeys == KEY_NITRO) //Nitro Doesnt exist What key would it say for Alt
    {
      if(IsPlayerInAnyVehicle(playerid))
        {
        new Float:s[3];
          GetVehicleVelocity(GetPlayerVehicleID(playerid),s[0],s[1],s[2]);
          s[0]=1.5*s[0];
          s[1]=1.5*s[1];
          s[2]=1.5*s[2];
          SetVehicleVelocity(GetPlayerVehicleID(playerid),s[0],s[1],s[2]);
        }
        return 1;
    }
Reply


Messages In This Thread
OnPlayerKeyStateChange QUICK HELP - by BP13 - 13.10.2009, 22:53
Re: OnPlayerKeyStateChange QUICK HELP - by Joe Staff - 13.10.2009, 23:15
Re: OnPlayerKeyStateChange QUICK HELP - by Danny_Costelo - 13.10.2009, 23:46
Re: OnPlayerKeyStateChange QUICK HELP - by BP13 - 14.10.2009, 01:16
Re: OnPlayerKeyStateChange QUICK HELP - by yom - 14.10.2009, 01:24
Re: OnPlayerKeyStateChange QUICK HELP - by BP13 - 14.10.2009, 01:27
Re: OnPlayerKeyStateChange QUICK HELP - by Danny_Costelo - 14.10.2009, 02:01
Re: OnPlayerKeyStateChange QUICK HELP - by BP13 - 14.10.2009, 02:54
Re: OnPlayerKeyStateChange QUICK HELP - by Joe Staff - 14.10.2009, 03:10

Forum Jump:


Users browsing this thread: 1 Guest(s)