29.11.2009, 16:26
Quote:
Originally Posted by dice7
The return has absolutely no effect on timers. On SetTimer change the third parameter to false
|
Still no effect when money should be added.
It doesn't not even print "PAYDAY: You have been gained %s" message to client... when it should.
Код:
public OnPlayerStateChange(playerid, newstate, oldstate) { if (newstate==PLAYER_STATE_DRIVER) { if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 525) { print("Starting timer for PayCheckTowing..."); SetTimer("StartPayingToCarTowning", PAY_TIME, false); print("Timer started..."); } if (GetVehicleModel(GetPlayerVehicleID(playerid)) == 416) { print("Starting timer for PayCheckAmbulance..."); SetTimer("PayCheckAmbulance", PAY_TIME, false); print("Timer started..."); } } return 1; }