[HELP] Neon
#1

How to make certain vehicles can not put a neons?
Reply
#2

You can use an other neon FS, tell me if you want.
Reply
#3

Add an if in the command, check the mdel of the vehicle or vehicleid and block the code..
Reply
#4

I want to make certain cars are prohibited neon.
Reply
#5

Show me example.
Reply
#6

pawn Код:
new Locked_Models[5] = {
    "5",
    "12",
    "234",
    "434",
    "443"
};

public OnPlayerCommandText(playerid, cmdtext[])
{
   
    if(strcmp(cmdtext, "/myneon", true)) {
        if(!IsPlayerInAnyVehicle(playerid)) /* no vehicle */ return 1;

        new mVehicle = GetVehicleModel(GetPlayerVehicleID(playerid));
        new neon = 1;
        for(new i = 0; i < sizeof Locked_Models; i++) {
            if(mVehicle == i) {
                // he cant add neon
                neon = 0;
            }
        }
        // add neon
        if(neon) {
            // add neon
        }
        else {
            // no neon
        }
    }
    return 0;
}
Reply
#7

Thanks
Reply
#8

But it seems too complicated script that somehow would be easier to do :/
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)