[FilterScript] lNeon The Simple The Best!
#1


Hello,
I'm Back Again With Another Release A Simple Neon System, Lets Get Started Then..

Introduction:
This Is An Simple Neon System Created By Littlehelper AKA iKing, Uses The Fastest Command Processor ZCMD. And Has Three Following Commands.
  • /Simpleneon (Adds A White Colored Neon To The Vehicle )
  • /Specialneon ( Adds A Multi-Color Neon To Vehicle Which Continually Switches Color )
  • /Deactivate ( Removes The Neon )
Pictures:


Source:
pawn Код:
/**********This Basic Neon System Filterscript Was Created By Littlehelper!************/
/*************Please Donot Remove The Credits!***********************/

#include <a_samp>
#include <Zcmd>

#define FILTERSCRIPT

#define COLOR_RED 0xA50047FF
#define COLOR_GREEN 0x18FF18FF

#define Red "{FF002B}"
#define Green "{3DE3B1}"

forward NeonC(playerid);
forward Anti(playerid);
forward CAnti(playerid);
forward Remove(target);

new Neon1[MAX_PLAYERS];
new Neon2[MAX_PLAYERS];
new Neon3[MAX_PLAYERS];
new Neon4[MAX_PLAYERS];

new Neon5[MAX_PLAYERS];
new Neon6[MAX_PLAYERS];
new Neon7[MAX_PLAYERS];
new Neon8[MAX_PLAYERS];

new TNeon[MAX_PLAYERS];
new TAnti[MAX_PLAYERS];
new TCAnti[MAX_PLAYERS];

new Text:NeonBox;

enum Info
{
    Neon,
    NeonR,
};
new Information[MAX_PLAYERS][Info];

public OnPlayerConnect(playerid)
{
    NeonBox = TextDrawCreate(453.000000, 119.000000, "   Neon Added!");
    TextDrawBackgroundColor(NeonBox, 15);
    TextDrawFont(NeonBox, 1);
    TextDrawLetterSize(NeonBox, 0.380000, 1.500000);
    TextDrawColor(NeonBox, -1);
    TextDrawSetOutline(NeonBox, 1);
    TextDrawSetProportional(NeonBox, 1);
    TextDrawUseBox(NeonBox, 1);
    TextDrawBoxColor(NeonBox, 100);
    TextDrawTextSize(NeonBox, 602.000000, 0.000000);
    Information[playerid][Neon] = 0;
    Information[playerid][NeonR] = 0;
    return 1;
}

public OnPlayerDeath(playerid)
{
    DestroyObject(Neon1[playerid]);
    DestroyObject(Neon2[playerid]);
    DestroyObject(Neon3[playerid]);
    DestroyObject(Neon4[playerid]);
    DestroyObject(Neon5[playerid]);
    DestroyObject(Neon6[playerid]);
    DestroyObject(Neon7[playerid]);
    DestroyObject(Neon8[playerid]);
    KillTimer(TNeon[playerid]);
    Information[playerid][Neon] = 0;
    Information[playerid][NeonR] = 0;
    return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
    DestroyObject(Neon1[playerid]);
    DestroyObject(Neon2[playerid]);
    DestroyObject(Neon3[playerid]);
    DestroyObject(Neon4[playerid]);
    DestroyObject(Neon5[playerid]);
    DestroyObject(Neon6[playerid]);
    DestroyObject(Neon7[playerid]);
    DestroyObject(Neon8[playerid]);
    KillTimer(TNeon[playerid]);
    Information[playerid][Neon] = 0;
    Information[playerid][NeonR] = 0;
    return 1;
}
    CMD:neons(playerid,params[])
    {
        ShowPlayerDialog(playerid,992,DIALOG_STYLE_MSGBOX,""Red"Neon Information!",""Green"Type /Simple Neon To Turn On The Simple Neon!\nType /Specialneon To Turn On The Special Multi-Colour Neon!\nType /Deactivate To Remove The Neons!","Okay","");
        return 1;
    }
   
    CMD:deactivate(playerid,params[])
    {
        if(Information[playerid][Neon] == 1)
        {
            DestroyObject(Neon1[playerid]);
            DestroyObject(Neon2[playerid]);
            DestroyObject(Neon3[playerid]);
            DestroyObject(Neon4[playerid]);
            KillTimer(TAnti[playerid]);
            KillTimer(TNeon[playerid]);
            Information[playerid][Neon] = 0;
            TextDrawSetString(NeonBox,"   Simple Neon Switched Off!");
            TextDrawShowForPlayer(playerid, NeonBox);
            SetTimerEx("Remove", 3500, false, "d", playerid);
            SendClientMessage(playerid, COLOR_GREEN,"White Neon Has Been Turned Off!");
        }
        else if(Information[playerid][NeonR] == 1)
        {
            DestroyObject(Neon5[playerid]);
            DestroyObject(Neon6[playerid]);
            DestroyObject(Neon7[playerid]);
            DestroyObject(Neon8[playerid]);
            KillTimer(TAnti[playerid]);
            KillTimer(TNeon[playerid]);
            Information[playerid][NeonR] = 0;
            TextDrawSetString(NeonBox,"   Special Neon Switched Off!");
            TextDrawShowForPlayer(playerid, NeonBox);
            SetTimerEx("Remove", 3500, false, "d", playerid);
            SendClientMessage(playerid, COLOR_GREEN,"Special Neon Has Been Turned Off!");
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREEN,"You Havint Activated Any Neon!");
            return 1;
        }
        return 1;
    }
    CMD:simpleneon(playerid,params[])
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(NoNeonForThis(playerid,GetPlayerVehicleID(playerid)))
            {
                SendClientMessage(playerid, COLOR_GREEN,"You Cannot Put Neon On This Vehicle!");
                return 1;
            }
            if(Information[playerid][Neon] == 0 && Information[playerid][NeonR] == 0)
            {
                new Float:X;
                new Float:Y;
                new Float:Z;
                Neon1[playerid] = CreateObject(1215,0,0,0,0,0,0);
                Neon2[playerid] = CreateObject(1215,0,0,0,0,0,0);
                Neon3[playerid] = CreateObject(1215,0,0,0,0,0,0);
                Neon4[playerid] = CreateObject(1215,0,0,0,0,0,0);
                AttachObjectToPlayer(Neon1[playerid],playerid,-0.0,1.0,-0.7,0,0,0);
                AttachObjectToPlayer(Neon2[playerid],playerid,-0.0,1.0,-0.7,0,0,0);
                AttachObjectToPlayer(Neon3[playerid],playerid,0.9,1.0,-0.7,0,0,0);
                AttachObjectToPlayer(Neon4[playerid],playerid,0.9,1.0,-0.7,0,0,0);
                TogglePlayerControllable(playerid, 0);
                GetPlayerPos(playerid,X,Y,Z);
                SetObjectPos(playerid,X,Y,Z+4);
                TNeon[playerid] = SetTimerEx("NeonC", 100, 0,"d",playerid);
                TAnti[playerid] = SetTimerEx("Anti", 100, 0,"d",playerid);
                TCAnti[playerid] = SetTimerEx("CAnti", 2000, 0,"d",playerid);
                Information[playerid][Neon] = 1;
                RepairVehicle(GetPlayerVehicleID(playerid));
                TextDrawSetString(NeonBox,"   Simple Neon Added!");
                TextDrawShowForPlayer(playerid, NeonBox);
                SetTimerEx("Remove", 3500, false, "d", playerid);
                ShowPlayerDialog(playerid,999,DIALOG_STYLE_MSGBOX,""Red"Neon Information!",""Green"Simple Neon Has Been Activated!","Okay","");
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_GREEN,"You Already Activated The Red Neon!");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_GREEN,"You Must Be In An Vehicle To Use This Command!");
            return 1;
        }
    }
    CMD:specialneon(playerid,params[])
    {
        if(IsPlayerInAnyVehicle(playerid))
        {
            if(NoNeonForThis(playerid,GetPlayerVehicleID(playerid)))
            {
                SendClientMessage(playerid, COLOR_GREEN,"You Cannot Put Neon On This Vehicle!");
                return 1;
            }
            if(Information[playerid][NeonR] == 0 && Information[playerid][Neon] == 0)
            {
                new Float:X;
                new Float:Y;
                new Float:Z;
                Neon5[playerid] = CreateObject(1262,0,0,0,0,0,0);
                Neon6[playerid] = CreateObject(1262,0,0,0,0,0,0);
                Neon7[playerid] = CreateObject(1262,0,0,0,0,0,0);
                Neon8[playerid] = CreateObject(1262,0,0,0,0,0,0);
                AttachObjectToPlayer(Neon5[playerid],playerid,-0.0,0.8,-0.4,0,0,0);
                AttachObjectToPlayer(Neon6[playerid],playerid,-0.0,0.8,-0.4,0,0,0);
                AttachObjectToPlayer(Neon7[playerid],playerid,0.9,0.8,-0.4,0,0,0);
                AttachObjectToPlayer(Neon8[playerid],playerid,0.9,0.8,-0.4,0,0,0);
                TogglePlayerControllable(playerid, 0);
                GetPlayerPos(playerid,X,Y,Z);
                SetObjectPos(playerid,X,Y,Z+4);
                TNeon[playerid] = SetTimerEx("NeonC", 100, 0,"d",playerid);
                TAnti[playerid] = SetTimerEx("Anti", 100, 0,"d",playerid);
                TCAnti[playerid] = SetTimerEx("CAnti", 2000, 0,"d",playerid);
                Information[playerid][NeonR] = 1;
                RepairVehicle(GetPlayerVehicleID(playerid));
                TextDrawSetString(NeonBox,"   Special Neon Added!");
                TextDrawShowForPlayer(playerid, NeonBox);
                SetTimerEx("Remove", 3500, false, "d", playerid);
                ShowPlayerDialog(playerid,991,DIALOG_STYLE_MSGBOX,""Red"Neon Information!",""Green"Activated Special Neon!","Okay","");
                return 1;
            }
            else
            {
                SendClientMessage(playerid, COLOR_RED,"You Already Activated The ""Special Neon""");
                return 1;
            }
        }
        else
        {
            SendClientMessage(playerid, COLOR_RED,"You Must Be In An Vehicle To Use This Command!");
            return 1;
        }
 }

public Anti(playerid)
{
    RepairVehicle(GetPlayerVehicleID(playerid));
    TAnti[playerid] = SetTimerEx("Anti", 100, 0,"d",playerid);
    return 1;
}

public CAnti(playerid)
{
    KillTimer(TAnti[playerid]);
    RepairVehicle(GetPlayerVehicleID(playerid));
    TogglePlayerControllable(playerid, 1);
    return 1;
}

public Remove(target)
{
    return TextDrawHideForPlayer(target, NeonBox);
}

public NeonC(playerid)
{
    if(IsPlayerInAnyVehicle(playerid))
    {
        TNeon[playerid] = SetTimerEx("NeonC", 100, 0,"d",playerid);
        return 1;
    }
    else
    {
        if(Information[playerid][Neon] == 1)
        {
            DestroyObject(Neon1[playerid]);
            DestroyObject(Neon2[playerid]);
            DestroyObject(Neon3[playerid]);
            DestroyObject(Neon4[playerid]);
            KillTimer(TNeon[playerid]);
            Information[playerid][Neon] = 0;
            SendClientMessage(playerid, COLOR_GREEN,"Neon Has Been Automatically Disabled By Leaving The Vehicle!");
            return 1;
        }
        else if(Information[playerid][NeonR] == 1)
        {
            DestroyObject(Neon5[playerid]);
            DestroyObject(Neon6[playerid]);
            DestroyObject(Neon7[playerid]);
            DestroyObject(Neon8[playerid]);
            KillTimer(TNeon[playerid]);
            Information[playerid][NeonR] = 0;
            SendClientMessage(playerid, COLOR_GREEN,"Neon Has Been Automatically Disabled By Leaving The Vehicle!");
            return 1;
        }
    }
    return 1;
}

NoNeonForThis(playerid,vehicleid)
{
new Vehicles[48] =
{
// Motor-Cycles
522,
462,
521,
461,
463,
581,
448,
586,
523,
468,
471,
// Bikes
509,
481,
510,
// Boats
539,
472,
473,
493,
595,
484,
430,
453,
452,
446,
454,
// Helicopters
548,
425,
417,
487,
497,
563,
501,
465,
447,
469,
488,
// Airplanes
520,
476,
593,
553,
513,
512,
577,
592,
511,
464,
519,
460,
};
vehicleid = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(playerid,vehicleid))
    {
        for(new i = 0; i < 48; i++)
        {
            if(GetVehicleModel(vehicleid) == Vehicles[i])
            {
                return 1;
            }
        }
    }
return 0;
}
||The End||
Reply
#2

Heh, looks pretty kool.
Reply
#3

Thanks.
Reply
#4

looking nice.gonna try it
Reply
#5

Nice work
Reply
#6

Thank you.
Reply
#7

I'll try it for my server, cuz' Any Neon i ever use it's didn't work and Has a Bug, Or SOmething
Reply
#8

And.... It's Work!!!! But, I think u should make new neon with Switchable Color *The Player Switch* But, It's A-W-E-S-O-M-E
Reply
#9

Quote:
Originally Posted by DwayneVanKom
Посмотреть сообщение
And.... It's Work!!!! But, I think u should make new neon with Switchable Color *The Player Switch* But, It's A-W-E-S-O-M-E
Thank you, but i don't quite get your catch...
Reply
#10

hey its nice
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)