......>Neon Special created 100% work 0.3e by Sergio Costa<..... -
Код:
//do not remove Created FS Neon Special By SergioCosta
//do not remove Created FS Neon Special By SergioCosta
//do not remove Created FS Neon Special By SergioCosta
//do not remove Created FS Neon Special By SergioCosta
//do not remove Created FS Neon Special By SergioCosta
//do not remove Created FS Neon Special By SergioCosta
//do not remove Created FS Neon Special By SergioCosta
//do not remove Created FS Neon Special By SergioCosta
#include <a_samp>
#define FILTERSCRIPT
#define ROJO 0xFF0000FF
#define VERDE 0x00A200FF
#define AZUL 0x0000DAFF
#define NARANJA 0xFFB400FF
#define BLANCO 0xFFFFFFAA
forward NeonC(playerid);
forward Anti(playerid);
forward CAnti(playerid);
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];
enum Info
{
Neon,
NeonR,
};
new Informacion[MAX_PLAYERS][Info];
public OnPlayerConnect(playerid)
{
Informacion[playerid][Neon] = 0;
Informacion[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]);
Informacion[playerid][Neon] = 0;
Informacion[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]);
Informacion[playerid][Neon] = 0;
Informacion[playerid][NeonR] = 0;
return 1;
}
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp("/neons", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid, AZUL,"===========================================");
SendClientMessage(playerid, NARANJA,"·Use /neons /neonw neon white to turn white.");
SendClientMessage(playerid, NARANJA,"·Usa / neonespecial to activate multicolor neon.");
SendClientMessage(playerid, NARANJA,"·Usa / disabless to disable some neon.");
SendClientMessage(playerid, NARANJA,"This server use NEON SPECIAL BY Sergio-Costa !");
SendClientMessage(playerid, AZUL,"===========================================");
return 1;
}
if (strcmp("/disabless", cmdtext, true, 10) == 0)
{
if(Informacion[playerid][Neon] == 1)
{
DestroyObject(Neon1[playerid]);
DestroyObject(Neon2[playerid]);
DestroyObject(Neon3[playerid]);
DestroyObject(Neon4[playerid]);
KillTimer(TAnti[playerid]);
KillTimer(TNeon[playerid]);
Informacion[playerid][Neon] = 0;
SendClientMessage(playerid, ROJO,"NEON WHITE DISATIVE!");
}
else if(Informacion[playerid][NeonR] == 1)
{
DestroyObject(Neon5[playerid]);
DestroyObject(Neon6[playerid]);
DestroyObject(Neon7[playerid]);
DestroyObject(Neon8[playerid]);
KillTimer(TAnti[playerid]);
KillTimer(TNeon[playerid]);
Informacion[playerid][NeonR] = 0;
SendClientMessage(playerid, ROJO,"Special Neon Off!");
}
else
{
SendClientMessage(playerid, ROJO,"You have no neon activated");
return 1;
}
return 1;
}
if (strcmp("/neonw", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(NeonNo(playerid,GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid, ROJO,"You can not put this vehicle Neon");
return 1;
}
if(Informacion[playerid][Neon] == 0 && Informacion[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);
Informacion[playerid][Neon] = 1;
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, NARANJA,"=-=-=-=-=");
SendClientMessage(playerid, VERDE,"Neon white attived!");
return 1;
}
else
{
SendClientMessage(playerid, ROJO,"Already have enabled the Red neon");
return 1;
}
}
else
{
SendClientMessage(playerid, ROJO,"You need to be in a car!");
return 1;
}
}
if (strcmp("/neonspecial", cmdtext, true, 10) == 0)
{
if(IsPlayerInAnyVehicle(playerid))
{
if(NeonNo(playerid,GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid, ROJO,"You can not put this vehicle Neon");
return 1;
}
if(Informacion[playerid][NeonR] == 0 && Informacion[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);
Informacion[playerid][NeonR] = 1;
RepairVehicle(GetPlayerVehicleID(playerid));
SendClientMessage(playerid, NARANJA,"=-=-=-=-=");
SendClientMessage(playerid, VERDE,"Neon Red attived!");
return 1;
}
else
{
SendClientMessage(playerid, ROJO,"Already have activated the Special neon");
return 1;
}
}
else
{
SendClientMessage(playerid, ROJO,"You need to be in a car!");
return 1;
}
}
return 0;
}
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 NeonC(playerid)
{
if(IsPlayerInAnyVehicle(playerid))
{
TNeon[playerid] = SetTimerEx("NeonC", 100, 0,"d",playerid);
return 1;
}
else
{
if(Informacion[playerid][Neon] == 1)
{
DestroyObject(Neon1[playerid]);
DestroyObject(Neon2[playerid]);
DestroyObject(Neon3[playerid]);
DestroyObject(Neon4[playerid]);
KillTimer(TNeon[playerid]);
Informacion[playerid][Neon] = 0;
SendClientMessage(playerid, ROJO,"Neon disabled by leaving the car");
return 1;
}
else if(Informacion[playerid][NeonR] == 1)
{
DestroyObject(Neon5[playerid]);
DestroyObject(Neon6[playerid]);
DestroyObject(Neon7[playerid]);
DestroyObject(Neon8[playerid]);
KillTimer(TNeon[playerid]);
Informacion[playerid][NeonR] = 0;
SendClientMessage(playerid, ROJO,"Neon disabled by leaving the car");
return 1;
}
}
return 1;
}
NeonNo(playerid,cocheid)
{
new Coches[48] =
{
//Motos
522,
462,
521,
461,
463,
581,
448,
586,
523,
468,
471,
//Bicis
509,
481,
510,
//Botes
539,
472,
473,
493,
595,
484,
430,
453,
452,
446,
454,
//Helicopteros
548,
425,
417,
487,
497,
563,
501,
465,
447,
469,
488,
// Aviones
520,
476,
593,
553,
513,
512,
577,
592,
511,
464,
519,
460,
};
cocheid = GetPlayerVehicleID(playerid);
if(IsPlayerInVehicle(playerid,cocheid))
{
for(new i = 0; i < 48; i++)
{
if(GetVehicleModel(cocheid) == Coches[i])
{
return 1;
}
}
}
return 0;
}
//do not remove Created FS Neon Special By SergioCosta//do not remove Created FS Neon Special By SergioCosta
//do not remove Created FS Neon Special By SergioCosta
//do not remove Created FS Neon Special By SergioCosta
//do not remove Created FS Neon Special By SergioCosta//do not remove Created FS Neon Special By SergioCosta
Re: ......>Neon Special created 100% work 0.3e by Sergio Costa<..... -
Re: ......>Neon Special created 100% work 0.3e by Sergio Costa<..... -
You add BollardLights as Neon?, sry but it looks really ------.
And you have forgot to remove the (neons) when someone unloadfs the script.
Re: ......>Neon Special created 100% work 0.3e by Sergio Costa<..... -