Get in Player Vehicle [PROBLEM]
#1

This is my Command to get in a Player Vehicle. But he show me the command is unkown

Код:
Code:
dcmd_giv(playerid,params[])
{
	#pragma unused params
    if(AccInfo[playerid][Level] >= 3)
    {
    	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 - 28.02.2014, 20:49
Re: Get in Player Vehicle [PROBLEM] - by Smileys - 28.02.2014, 21:16

Forum Jump:


Users browsing this thread: 1 Guest(s)