17.07.2013, 08:06
SO i have the following code that is under OnPlayerClickTextdraw as a button. When a player is in a vehicle, viewing the textdraws and clicks on this textdraw, it will send all other players in a vehicle viewing the textdraws a message.
But, what's happening is that only player with the id of 0 is recieiving the ClientMessage. I am not really sure what is wrong, advise would be much appreciated. Thanks
Код:
for(new driver = 0 ; driver < MAX_PLAYERS; driver++) { if(PlayerLogged[driver] == 1 && PlayerViewingComputer[driver] == 0 && VehicleData[vehicleid][HasComputer] == 1) { SendClientMessage(driver,COLOUR_BLUE,"Test Message."); return 1; } }