28.02.2014, 20:25
so you mean you want to get into the vehicle of the specified playerid?
pawn Код:
CMD:giv( playerid, params[ ] )
{
new targetid;
if( sscanf( params, "u", targetid ) ) return SendClientMessage( playerid, -1, "Usage: /giv [playerid]" );
if( targetid == INVALID_PLAYER_ID ) return SendClientMessage( playerid, -1, "Invalid playerid!" );
if( !IsPlayerInAnyVehicle( targetid ) ) return SendClientMessage( playerid, -1, "This player has no vehicle!" );
RemovePlayerFromVehicle( targetid );
PutPlayerInVehicle( playerid, GetPlayerVehicleID( targetid ), 0 );
return 1;
}