01.03.2014, 12:01
I create a Command named /giv (get in Players Vehicle)
But if I use this command the driver get out of his car :/ Can someone fix it ?
But if I use this command the driver get out of his car :/ Can someone fix it ?
Код:
COMMAND:rov(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; }