Help with warning and /eject command?
#8

NP :P
And for the command..

Simple Example:
pawn Код:
if( !strcmp( cmdtext, "/eject", true ))
{
  if( GetPlayerState( playerid ) != PLAYER_STATE_DRIVER )
    return SendClientMessage( playerid, 0xFF0000FF, "**[ERROR]You must be the driver of a vehicle to use this command" );
  RemovePlayerFromVehicle( playerid );
  return true;
}
Easy as pie :P

NOTE: This is for ejecting the driver (which also is the one who types the command)
This can easily be edited for seatids, for other players etc, etc.
Reply


Messages In This Thread
Help with warning and /eject command? - by DeltaAirlines12 - 11.12.2009, 20:41
Re: Help with warning and /eject command? - by LarzI - 11.12.2009, 21:34
Re: Help with warning and /eject command? - by DeltaAirlines12 - 11.12.2009, 23:22
Re: Help with warning and /eject command? - by LarzI - 12.12.2009, 00:20
Re: Help with warning and /eject command? - by DeltaAirlines12 - 12.12.2009, 00:31
Re: Help with warning and /eject command? - by LarzI - 12.12.2009, 00:49
Re: Help with warning and /eject command? - by DeltaAirlines12 - 12.12.2009, 01:15
Re: Help with warning and /eject command? - by LarzI - 12.12.2009, 01:49

Forum Jump:


Users browsing this thread: 7 Guest(s)