22.04.2015, 20:50
So, this is my code:
For some reason it spams my chat with Test when a trailer is attach. How can I fix this?
Код:
public OnPlayerUpdate(playerid) { new vehicleid = GetPlayerVehicleID(playerid); if(IsTrailerAttachedToVehicle(vehicleid)) { SendClientMessage(playerid, COLOR_MAXZONE, "Test"); } return 1; }