Keys problem
#6

//OnGamemode
Quote:

SetTimer("UpdateAll", 500, 1);

Quote:

forward UpdateAll();
public UpdateAll()
{
for(new i; i < MAX_PLAYERS; i ++)
{
if(PlayerInfo[i][pSelection] == 1)
{
new keys,ud,lr;
GetPlayerKeys(i,keys,ud,lr);
new rand = random(sizeof(RandomVeh));
if(lr == KEY_RIGHT)
{
SendClient..

}
else if(lr == KEY_LEFT)
{
SendClient..
}
}
}
return 1;
}

now this doesn't work.. OnPlayerUpdate is just updating everything too fast and I don't like it, and idk how to make if he "pressed" it (I don't want it to work if he holds it).
Reply


Messages In This Thread
Keys problem - by Exxious - 08.01.2011, 15:22
Re: Keys problem - by JaTochNietDan - 08.01.2011, 15:26
Re: Keys problem - by Mr.Stranger - 08.01.2011, 15:27
Re: Keys problem - by HyperZ - 08.01.2011, 15:33
Re: Keys problem - by Joe Staff - 08.01.2011, 15:37
Re: Keys problem - by Exxious - 09.01.2011, 10:21
Re: Keys problem - by JaTochNietDan - 09.01.2011, 13:39

Forum Jump:


Users browsing this thread: 1 Guest(s)