09.01.2011, 10:21
//OnGamemode
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).
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; } |