/dveh no static vehicles.
#1

Greetings,
as of the moment im trying to improve my scripting knowledge, by scripting a gamemode.
Tough i'm getting some issues, i taught maybe someone on here could help me.

So: /dveh - this command should destroy the vehicle ur in.
BUTT: i have a database with dynamic vehicles, And u should not be able to destroy vehicles that come out of the database, How will i make this happen, As of now im using this :

Код:
CMD:dveh(playerid,params[]) //Shouldn't be able to destroy vehicles that are stored in the database.
{
    if(IsPlayerAdmin(playerid) || PlayerInfo[playerid][pLevel]>=3)
    {
		new vehid;
		if(IsPlayerInAnyVehicle(playerid))
		{
		    vehid = GetPlayerVehicleID(playerid);
		    DestroyVehicle(vehid);
		    SendClientMessage(playerid,COLOR_WHITE,"The vehicle has been destroyed.");
		}
	}
	else return SendClientMessage(playerid,COLOR_WHITE,"You do not have the appropiate administration level.");
	return 1;
}
Reply


Messages In This Thread
/dveh no static vehicles. - by yvoms - 07.04.2014, 13:41
Re: /dveh no static vehicles. - by Vince - 07.04.2014, 13:44
Re: /dveh no static vehicles. - by yvoms - 07.04.2014, 13:50

Forum Jump:


Users browsing this thread: 1 Guest(s)