how to Destroy vehicle
#7

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
Код:
 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;
   }
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
Reply


Messages In This Thread
how to Destroy vehicle - by mannu - 15.04.2009, 08:07
Re: how to Destroy vehicle - by SpiderPork - 15.04.2009, 08:29
Re: how to Destroy vehicle - by Danut - 15.04.2009, 08:32
Re: how to Destroy vehicle - by mannu - 15.04.2009, 09:19
Re: how to Destroy vehicle - by Clum` - 15.04.2009, 09:24
Re: how to Destroy vehicle - by hanzen - 15.04.2009, 09:31
Re: how to Destroy vehicle - by mannu - 15.04.2009, 09:33
Re: how to Destroy vehicle - by Clum` - 15.04.2009, 09:51
Re: how to Destroy vehicle - by mannu - 15.04.2009, 10:11
Re: how to Destroy vehicle - by mannu - 15.04.2009, 10:29

Forum Jump:


Users browsing this thread: 1 Guest(s)