[HELP] Car repawn
#6

Asuming what he says is true,

You should be using a timer that checks what keys are pressed every ... milliseconds. (in stead of what you are doing atm)

Using GetPlayerKeys...

for example

pawn Код:
public CheckKeys(playerid)
{
  if(GetPlayerKeys(playerid)==...)
  {
    ....
  }
}

OnPlayerEnterVehicle()
{
  if(vehicleid==...)
  {
   SetTimer("CheckKeys", 200, 1);
  }
}
More info about the GetPlayerKeys.... here https://sampwiki.blast.hk/wiki/GetPlayerKeys
Reply


Messages In This Thread
[HELP] Car repawn - by WThieves - 21.02.2010, 13:32
Re: [HELP] Car repawn - by Rizard - 21.02.2010, 14:48
Re: [HELP] Car repawn - by WThieves - 21.02.2010, 15:13
Re: [HELP] Car repawn - by Rizard - 21.02.2010, 15:33
Re: [HELP] Car repawn - by WThieves - 21.02.2010, 18:06
Re: [HELP] Car repawn - by Rizard - 21.02.2010, 19:21
Re: [HELP] Car repawn - by WThieves - 24.02.2010, 16:46

Forum Jump:


Users browsing this thread: 5 Guest(s)