21.01.2011, 11:31
(
Last edited by Kwarde; 21/01/2011 at 04:45 PM.
)
Hi everyone! I've made an EASY, SMALL filterscript :P - "RealLife Number plates".
It's like the numberplates in the Netherlands (example: DJ-FK-44). The last number (integer) is the vehicle ID.
Load this filterscript as last! First do the other filterscripts. However this is the script:
This's easy, isn't it?
- Kevin
p.s.
I need no credits for this ^^ - Unless if you wanna add them -.-
LAST EDIT: 21-01-2011 18:48 :: 'new str[32];' added, forgot that! Without it you'll get some errors :S
It's like the numberplates in the Netherlands (example: DJ-FK-44). The last number (integer) is the vehicle ID.
Load this filterscript as last! First do the other filterscripts. However this is the script:
pawn Code:
#include <a_samp>
public OnFilterScriptInit()
{
new str[32];
for(new i = 0; i < MAX_VEHICLES; i++){
new rand = random(20);
switch(rand){
case 0: format(str, 32, "ST-AT-");
case 1: format(str, 32, "LS-CA-");
case 2: format(str, 32, "NO-CA-");
case 3: format(str, 32, "KJ-VR-");
case 4: format(str, 32, "AK-JJ-");
case 5: format(str, 32, "VB-FK-");
case 6: format(str, 32, "WG-JX-");
case 7: format(str, 32, "GH-XL-");
case 8: format(str, 32, "JJ-ZL-");
case 9: format(str, 32, "TZ-DJ-");
case 10: format(str, 32, "HO-PV-");
case 11: format(str, 32, "RL-RP-");
case 12: format(str, 32, "PO-OP-");
case 13: format(str, 32, "LQ-IV-");
case 14: format(str, 32, "MV-MM-");
case 15: format(str, 32, "PC-NB-");
case 16: format(str, 32, "SA-MP-");
case 17: format(str, 32, "RP-DA");
case 18: format(str, 32, "KU-TJ-");
case 19: format(str, 32, "PH-BB-");
case 20: format(str, 32, "DG-MC-");
default: format(str, 32, "MafiaRP-");
}
format(str, 32, "%s%d", str, i);
if(IsACopVehicle(i)) format(str, 32, "SAPD %d", i);
SetVehicleNumberPlate(i, str);
SetVehicleToRespawn(i);
}
return 1;
}
stock IsACopVehicle(vehicleid)
{
new model = GetVehicleModel(vehicleid);
if(model == 523 || model == 430 || model == 427 || model == 490 || model == 528 || model >= 596 && model <= 601 || model == 497)
return true;
return false;
}
- Kevin
p.s.
I need no credits for this ^^ - Unless if you wanna add them -.-
LAST EDIT: 21-01-2011 18:48 :: 'new str[32];' added, forgot that! Without it you'll get some errors :S