13/04/2021 02:03
(13/04/2021 01:49)xbruno1000x Escreveu:ta mas isso funcionará no android tb?(13/04/2021 01:32)zBL4CK Escreveu:(13/04/2021 00:05)diogo123 Escreveu: na verdade, não e muito recomendado utilizar a OnPlayerUpdate, vide informações da open mp.Tem alguma forma mais otimizada?
Citar:[font=Frutiger, "Frutiger Linotype", Univers, Calibri, "Gill Sans", "Gill Sans MT", "Myriad Pro", Myriad, "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans-serif]This callback is called, on average, 30 times per second, per player; only use it when you know what it's meant for (or more importantly what it's NOT meant for). The frequency with which this callback is called for each player varies, depending on what the player is doing. Driving or shooting will trigger a lot more updates than idling.[/font]
Busque nas keys do samp pela tecla de mudar de arma, se houver poderá usar a public KeyStateChange e executar a função apenas quando o player clicar na tecla de mudar arma.