12.12.2009, 01:49
NP :P
And for the command..
Simple Example:
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.
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;
}
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.