07.04.2014, 13:41
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 :
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; }