[Include] Neon Library
#1

Нndice:
• nLibrary
• Natives
• Cores
• Instalaзгo
• Modo de uso
• ...IsVehicleUsingNeon
• ...Sirenes
• Bikes
• Pics
• Download

nLibrary:
nLibrary й uma livraria que lhe dб a possibilidade de anexar neons a veнculos com muita praticidade e simplicidade.

Natives:
pawn Код:
native AttachNeonToVehicle(vehicleid, neonid);
native RemoveNeonFromVehicle(vehicleid);
native IsVehicleUsingNeon(vehicleid);
native GetVehicleNeonColor(vehicleid);
native IsVehicleUsingBuzzer(vehicleid);
native RemoveBuzzerFromVehicle(vehicleid);
Cores:
pawn Код:
#define NEON_BLUE                               (0)
#define NEON_PINK                               (1)
#define NEON_YELLOW                             (2)
#define NEON_GREEN                              (3)
#define NEON_RED                                (4)
#define NEON_WHITE                              (5)
#define NEON_POLICE                             (6)
Instalaзгo:
Apenas inclua a include ao seu script.
pawn Код:
#include "nLibrary"
Utilizaзгo da native IsVehicleUsingNeon:
Nгo й possнvel utilizar true & false nesta funзгo, apenas 1(true) e 0(false).
pawn Код:
if(IsVehicleUsingNeon(vehicleid) == 1) ...
Ou se preferir.
pawn Код:
/*if(IsVehicleUsingNeon(vehicleid)) й a mesma coisa de if(IsVehicleUsingNeon(vehicleid) == 1)
e if(!IsVehicleUsingNeon(vehicleid)) й a mesma coisa de if(IsVehicleUsingNeon(vehicleid) == 0)*/
Utilizando as luzes policiais:
As sirenes sгo separadas dos neons, entгo й necessбrio usar funзхes diferentes.
IsVehicleUsingBuzzer & RemoveBuzzerFromVehicle

Bikes:
Detalhe: Quando se adiciona neon a uma bike ele nгo ficarб dois neons um de cada lado, terб apenas um neon central, nгo ficando algo "estranho".

Imagens:




Download:
http://pastebin.com/eZNW6XHL
Reply


Messages In This Thread
Neon Library - by Shelby - 18.06.2011, 03:07
Re: Neon Library - by ViniBorn - 18.06.2011, 03:14
Re: Neon Library - by Shadoww5 - 18.06.2011, 03:18
Re: Neon Library - by Chefгo - 18.06.2011, 03:31
Re: Neon Library - by Shelby - 18.06.2011, 03:42
Re: Neon Library - by The Knight - 18.06.2011, 10:03
Re: Neon Library - by Chefгo - 18.06.2011, 10:48
Re: Neon Library - by Shelby - 18.06.2011, 11:56
Re: Neon Library - by ApolloRJ - 18.06.2011, 13:00
Re: Neon Library - by The Knight - 18.06.2011, 13:09

Forum Jump:


Users browsing this thread: 3 Guest(s)