Get in Player Vehicle [PROBLEM]
#1

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 ?

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


Messages In This Thread
Get in Player Vehicle [PROBLEM] - by AwokenNeoX - 01.03.2014, 12:01
Re: Get in Player Vehicle [PROBLEM] - by PrivatioBoni - 01.03.2014, 13:12
Re: Get in Player Vehicle [PROBLEM] - by BroZeus - 01.03.2014, 13:14
Re: Get in Player Vehicle [PROBLEM] - by Threshold - 01.03.2014, 15:29

Forum Jump:


Users browsing this thread: 1 Guest(s)