SA-MP Forums Archive
Diffrent Filterscripts - 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: Diffrent Filterscripts (/showthread.php?tid=440074)



Diffrent Filterscripts - Farshid1994 - 28.05.2013

Do i need to have my filterscripts Mixed in 1 Filterscript to set some commands for vip ?
for examle i'm using LuxAdmin Filterscript , and i want to set My Police Flash filterscript For VIP , should i mix two scripts into 1 ? cuz i tried this way , i had No errors or warnings but after that LuxAdmin's Commands Didnt work...But the flasher that i mixed into LuxAdmin Works perfectly
LuxAdmin =https://sampforum.blast.hk/showthread.php?tid=120724
Police Flash =https://sampforum.blast.hk/showthread.php?tid=352070

i need to set the command " /Flash " for Vips ... Please give me some tips



Re: Diffrent Filterscripts - Farshid1994 - 28.05.2013

Anyone ?? Please ....


Re: Diffrent Filterscripts - jordy.kiesebrink - 28.05.2013

Include the plugin to use this in your filterscript
pawn Код:
#include <ladmin>
then you can enable it for all vips
pawn Код:
command(flash, playerid, params[]) {
    if(IsPlayerVipMember(playerid)) {
        new vehicleid,panels,doors,lights,tires;
        vehicleid = GetPlayerVehicleID(playerid);
        if(!Flasher[vehicleid]) {
       
        //the rest of the big ass switch
       
        }
    }
}
or just for silver for example
pawn Код:
command(flash, playerid, params[]) {
    If(IsPlayerVipType(playerid, 1)) {//silver is case 1
        new vehicleid,panels,doors,lights,tires;
        vehicleid = GetPlayerVehicleID(playerid);
        if(!Flasher[vehicleid]) {
       
        //the rest of the big ass switch
       
        }
    }
}
Код:
//Types:
//1 - Silver Account
//2 - Gold Account
//3 - Premium Account



Re: Diffrent Filterscripts - DobbysGamertag - 28.05.2013

you need to include

pawn Код:
#include ladmin
Then you can use VIP commands in any script.



pawn Код:
COMMMAND: (playerid, params[])
{
    if(IsPlayerVipType(playerid,TYPE HERE))
    {
        //code
    }
    else return //tell them they dont have it. Or return 0;
    return 1;
}



Re: Diffrent Filterscripts - Farshid1994 - 28.05.2013

Thanks Fellas + Rep for u all