[HELP] Neon - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [HELP] Neon (
/showthread.php?tid=349836)
[HELP] Neon -
V4at - 10.06.2012
How to make certain vehicles can not put a neons?
Re: [HELP] Neon -
mickos - 10.06.2012
You can use an other neon FS, tell me if you want.
Re: [HELP] Neon -
ReVo_ - 10.06.2012
Add an if in the command, check the mdel of the vehicle or vehicleid and block the code..
Re : [HELP] Neon -
V4at - 10.06.2012
I want to make certain cars are prohibited neon.
Re : [HELP] Neon -
V4at - 10.06.2012
Show me example.
Re: [HELP] Neon -
ReVo_ - 10.06.2012
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;
}
Re : [HELP] Neon -
V4at - 10.06.2012
Thanks
Re : [HELP] Neon -
V4at - 10.06.2012
But it seems too complicated script that somehow would be easier to do :/