15.04.2009, 09:33
Well thanks for your info i had overcomed this but a new bug
but tell me how to create a timer i need it and how to implement it also
here's what is used
so as soon as he exits the vehicle it gets deleted
but when i joins the server
it automatically gives message
you exited a vehicle:it will be destroyed now
you exited a vehicle:it will be destroyed now
twice other things work 100% fine
but tell me how to create a timer i need it and how to implement it also
here's what is used
Код:
public OnPlayerStateChange(playerid,newstate) { if( GetPlayerState(playerid)==PLAYER_STATE_DRIVER) { SendClientMessage(playerid,0xFF0000AA,"you entered a vehicle"); vd=GetPlayerVehicleID(playerid); } else { SendClientMessage(playerid,0xFF0000AA,"you exited a vehicle:it will be destroyed now"); DestroyVehicle(vd); return 1; } return 0; }
but when i joins the server
it automatically gives message
you exited a vehicle:it will be destroyed now
you exited a vehicle:it will be destroyed now
twice other things work 100% fine