10.06.2012, 10:27
How to make certain vehicles can not put a neons?
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;
}