onplayerentervehicle
#1

what does mean return 1;/ return 0; in that callback

and other callbacks as OnPlayerExitVehicle etc..

At OnPlayerUpdate it wont show it for other players or smth like that..


and what means return 0;/1; in stock ?
Reply
#2

https://sampwiki.blast.hk/wiki/OnPlayerEnterVehicle = Doesn't return a specific value
https://sampwiki.blast.hk/wiki/OnPlayerUpdate:
Returns 0 - Update from this player will not be replicated to other clients.
Returns 1 - Indicates that this update can be processed normally and sent to other players.

For stocks, it depends on the stock's function.
Reply
#3

Again you didnt understood me.

I know about OnPlayerUpdate...

But whats about other callbacks like OnPlayerEnter Vehicle.
Doesn't return a specific value - i though this means that there are no returns required but what would mean return 0; here? Nothinbg then?

is it possible to not show for other clients if player is entering in car
For example the same admincars, if player is entering it would set the players current position and then i would like to not show that entering for other players. i supose i need to make a variable and put something in onplayer update with retrn 0; ?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)