Raised This Month: $ Target: $400
 0% 

What code is that??


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
marcelocent
Member
Join Date: Aug 2010
Old 01-15-2011 , 16:51   What code is that??
Reply With Quote #1

PHP Code:
/*/WeaponIds USED: 0, 1, 16, 21, 22, 23, 24, 25, 27, 28, 29, 30, 31, 33, 34, 36, 37, 42, 46/*/
#include <a_samp>

#undef MAX_PLAYERS
#define MAX_PLAYERS 100 /*/ EDIT IF U CHANGE SLOTS !/*/

#include <dini>
#include <dudb>
#include <gl_common>
#include <foreach>
#include <a_zones>


#define ASSAULT 0
#define DEMOLITION 1
#define SNIPER 2
#define PILOT 3
#define MEDIC 4
#define ENGINEER 5
#define PYRO 6
#define SCOUT 7
#define ADMIN 8
#define GENERAL 9

#define SPAM 6
#define COMMAND_SPAM 7

new Text:Textdraw0;

forward SpamUpdate();

new 
Text:vehiclehpbar[12];
forward VHPBarUpdate();

#define COLOR_VHPGOOD 0x0AFF0AAA
#define COLOR_VHPWARNING 0xFFFF00AA
#define COLOR_VHPDANGER 0xFF0000AA

/*/new FALSE = false;/*/
#define SendFormattedMessage(%0,%1,%2,%3) do{new _string[128]; format(_string,sizeof(_string),%2,%3); SendClientMessage(%0,%1,_string);} while(FALSE)
#define SendFormattedMessageToAll(%0,%1,%2) do{new _string[128]; format(_string,sizeof(_string),%1,%2); SendClientMessageToAll(%0,_string);} while(FALSE)

forward MutePlayer(playerid,time,reason[]);

new 
Messages[MAX_PLAYERS];
new 
Commands[MAX_PLAYERS];

new 
Muted[MAX_PLAYERS];

new 
Planes[]=
{
    
413,417,425,447,460,469,476,487,488,497,511,512,513,519,520,548,553,563,577,592,593
};

new 
VehicleName[][] =
{
   
"Landstalker",
   
"Bravura",
   
"Buffalo",
   
"Linerunner",
   
"Pereniel",
   
"Sentinel",
   
"Dumper",
   
"Firetruck",
   
"Trashmaster",
   
"Stretch",
   
"Manana",
   
"Infernus",
   
"Voodoo",
   
"Pony",
   
"Mule",
   
"Cheetah",
   
"Ambulance",
   
"Leviathan",
   
"Moonbeam",
   
"Esperanto",
   
"Taxi",
   
"Washington",
   
"Bobcat",
   
"Mr Whoopee",
   
"BF Injection",
   
"Hunter",
   
"Premier",
   
"Enforcer",
   
"Securicar",
   
"Banshee",
   
"Predator",
   
"Bus",
   
"Rhino",
   
"Barracks",
   
"Hotknife",
   
"Trailer",
   
"Previon",
   
"Coach",
   
"Cabbie",
   
"Stallion",
   
"Rumpo",
   
"RC Bandit",
   
"Romero",
   
"Packer",
   
"Monster Truck",
   
"Admiral",
   
"Squalo",
   
"Seasparrow",
   
"Pizzaboy",
   
"Tram",
   
"Trailer",
   
"Turismo",
   
"Speeder",
   
"Reefer",
   
"Tropic",
   
"Flatbed",
   
"Yankee",
   
"Caddy",
   
"Solair",
   
"Berkley's RC Van",
   
"Skimmer",
   
"PCJ-600",
   
"Faggio",
   
"Freeway",
   
"RC Baron",
   
"RC Raider",
   
"Glendale",
   
"Oceanic",
   
"Sanchez",
   
"Sparrow",
   
"Patriot",
   
"Quad",
   
"Coastguard",
   
"Dinghy",
   
"Hermes",
   
"Sabre",
   
"Rustler",
   
"ZR-350",
   
"Walton",
   
"Regina",
   
"Comet",
   
"BMX",
   
"Burrito",
   
"Camper",
   
"Marquis",
   
"Baggage",
   
"Dozer",
   
"Maverick",
   
"News Chopper",
   
"Rancher",
   
"FBI Rancher",
   
"Virgo",
   
"Greenwood",
   
"Jetmax",
   
"Hotring",
   
"Sandking",
   
"Blista Compact",
   
"Police Maverick",
   
"Boxville",
   
"Benson",
   
"Mesa",
   
"RC Goblin",
   
"Hotring Racer",
   
"Hotring Racer",
   
"Bloodring Banger",
   
"Rancher",
   
"Super GT",
   
"Elegant",
   
"Journey",
   
"Bike",
   
"Mountain Bike",
   
"Beagle",
   
"Cropdust",
   
"Stunt",
   
"Tanker",
   
"RoadTrain",
   
"Nebula",
   
"Majestic",
   
"Buccaneer",
   
"Shamal",
   
"Hydra",
   
"FCR-900",
   
"NRG-500",
   
"HPV1000",
   
"Cement Truck",
   
"Tow Truck",
   
"Fortune",
   
"Cadrona",
   
"FBI Truck",
   
"Willard",
   
"Forklift",
   
"Tractor",
   
"Combine",
   
"Feltzer",
   
"Remington",
   
"Slamvan",
   
"Blade",
   
"Freight",
   
"Streak",
   
"Vortex",
   
"Vincent",
   
"Bullet",
   
"Clover",
   
"Sadler",
   
"Firetruck",
   
"Hustler",
   
"Intruder",
   
"Primo",
   
"Cargobob",
   
"Tampa",
   
"Sunrise",
   
"Merit",
   
"Utility",
   
"Nevada",
   
"Yosemite",
   
"Windsor",
   
"Monster Truck",
   
"Monster Truck",
   
"Uranus",
   
"Jester",
   
"Sultan",
   
"Stratum",
   
"Elegy",
   
"Raindance",
   
"RC Tiger",
   
"Flash",
   
"Tahoma",
   
"Savanna",
   
"Bandito",
   
"Freight",
   
"Trailer",
   
"Kart",
   
"Mower",
   
"Duneride",
   
"Sweeper",
   
"Broadway",
   
"Tornado",
   
"AT-400",
   
"DFT-30",
   
"Huntley",
   
"Stafford",
   
"BF-400",
   
"Newsvan",
   
"Tug",
   
"Trailer",
   
"Emperor",
   
"Wayfarer",
   
"Euros",
   
"Hotdog",
   
"Club",
   
"Trailer",
   
"Trailer",
   
"Andromada",
   
"Dodo",
   
"RC Cam",
   
"Launch",
   
"Police Car (LSPD)",
   
"Police Car (SFPD)",
   
"Police Car (LVPD)",
   
"Police Ranger",
   
"Picador",
   
"S.W.A.T. Van",
   
"Alpha",
   
"Phoenix",
   
"Glendale",
   
"Sadler",
   
"Luggage Trailer",
   
"Luggage Trailer",
   
"Stair Trailer",
   
"Boxville",
   
"Farm Plow",
   
"Utility Trailer"
};

#define RED 0xFF0000FF
#define GREEN 0x00FF00FF

#define GetVehicleName(%0) VehicleName[GetVehicleModel(%0)-400]

#define MAX_SPEED 19

#define MAX_TEAMS            20
#define MAX_TEAM_NAME        16
#define MAX_TEAM_MEMBERS    4

#define MAX_MEMBERS     4

#define MAX_CHECKS 5
#define MAX_VARIABLES 24

new JB_Warnings[MAX_PLAYERS];


/*/ === [Color Defines] === /*/
#define COLOR_LIGHTGREEN 0x9ACD32AA
#define COLOR_YELLOW2 0xF5DEB3AA
#define COLOR_DBLUE 0x2641FEAA
#define COLOR_SYSTEM 0xEFEFF7AA

#define COLOR_GREY 0xAFAFAFAA
#define COLOR_BLUE 0x0000FF96
#define COLOR_DIS_RED 0xFF0000FF
#define COLOR_CON_GREEN 0x00FF00FF
#define COLOR_WHITE 0xFFFFFFFF
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_ORANGE 0xFFA500AA
#define GCOLOR_GREEN 0x33AA3355
#define YELLOW 0xFFFF00FF


#define COLOR_OOC 0xFF8080FF

#define COLOR_LIGHTRED 0xFF8080FF
#define COLOR_LIGHTBLUE 0x00BFFFAA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_RED 0xFF0000AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_GREEN 0x00FF00AA

#define ADMIN_RED     0xFB0000FF
#define YELLOW         0xFFFF00FF
#define ORANGE         0xF97804FF
#define LIGHTRED     0xFF8080FF
#define LIGHTBLUE     0x00C2ECFF
#define PURPLE         0xB360FDFF
#define BLUE         0x1229FAFF
#define LIGHTGREEN     0x38FF06FF
#define DARKPINK    0xE100E1FF
#define DARKGREEN     0x008040FF
#define AQUAGREEN    0x00CACAFB
#define NICESKY     0x99FFFFAA
#define GREY         0xCECECEFF
#define WHITE         0xFFFFFFFF
#define COLOR_TAN   0xE39216FF

/*/Admin/*/
/*/ === [Some configuring] ===/*/
#define JOIN_MESSAGES false
#define Leavemessages false
#define leavemessagecolor COLOR_RED
#define joinmessagecolor COLOR_RED

#define MEASURE_TIME 1000

#define Level1Commands1 ">> /clearchat, /slap [id], /kick [id] [reason], /goto [id], /get [id], /akill [id], /warn [id] [reason]"
#define Level1Commands2 ">> /(un)freeze [id], /playerinfo [id], /asay [msg], /ip [id], /mute [id], /ajail [id] [time], /force [id]"
#define Level2Commands1 ">> /telep [teleportee id] [dest. id], /(un)mute [id] /(un)jail [id] [time], /ann [text] [time]"
#define Level2Commands2 ">> /eject [id], /sethealth [id] [amt], /setarmour [id] [amt] /healall, /armourall"
#define Level3Commands1 ">> /disarm [id], /disarmall, /explode [id], /time [0-23], /weather [weatherid]"
#define Level3Commands2 ">> /setmoney [id] [amount], /ban [id] [reason], /say [text]"
#define Level4Commands1 ">> /disarmall, /reloadbans, /reloadlogs, /crash [id]"


#define TEAM_USA 0
#define TEAM_GERMANY 1
#define TEAM_MERC 2
#define TEAM_RUSSIA 3
#define TEAM_JAPAN 4

/*/new mailsubject[128];/*/

new SpeedHacking[MAX_PLAYERS];
new 
Speed[MAX_PLAYERS][MAX_CHECKS];
enum pWarns
{
    
TeamJack
}

new 
Warns[MAX_PLAYERS][pWarns];


enum enums
{
    
is,
    
intspc,
    
Float:Xspc,
    
Float:Yspc,
    
Float:Zspc
};

new 
admgod[MAX_PLAYERS];

new 
freeze[MAX_PLAYERS];
new 
WarnedTimes[MAX_PLAYERS];

new 
PlayerSpec[MAX_PLAYERS][enums];
new 
Dispenser[MAX_PLAYERS];
new 
EngineerI[MAX_PLAYERS];
new 
dispout[MAX_PLAYERS];

new 
Driver[MAX_VEHICLES];
new 
logged[MAX_PLAYERS];
new 
adminlevel[MAX_PLAYERS];
new 
money[MAX_PLAYERS];
new 
playername[MAX_PLAYER_NAME];



new 
bool:IsInCargoB[MAX_PLAYERS];
new 
PlayerCargoB[MAX_PLAYERS];

new 
bool:IsInBarracks[MAX_PLAYERS];
new 
PlayerBarracks[MAX_PLAYERS];

new 
ammoo[MAX_PLAYERS];
new 
piolet[MAX_PLAYERS];

new 
deaths[MAX_PLAYERS];
new 
kills[MAX_PLAYERS];



new 
rank[MAX_PLAYERS];
new 
pscore[MAX_PLAYERS];


new 
mute[MAX_PLAYERS];

new 
jail[MAX_PLAYERS];

forward BanLog(string[]);

forward SendClientMessageToAdmins(color,string[],alevel);

forward Message();

new 
IfCapture[16];

new 
BarracksUser[MAX_PLAYERS][MAX_VEHICLES];
new 
CargoBobUser[MAX_PLAYERS][MAX_VEHICLES];


forward IsPlayerAdminCall(playerid);
public 
IsPlayerAdminCall(playerid)
    return (
adminlevel[playerid] >= 1);

new 
LastVehicle[MAX_PLAYERS];


new 
adminduty[MAX_PLAYERS];

#define dcmd(%1,%2,%3) if (!strcmp((%3)[1], #%1, true, (%2)) && ((((%3)[(%2) + 1] == '\0') && (dcmd_%1(playerid, ""))) || (((%3)[(%2) + 1]
#define isnull(%1) ((%1[0] == 0) || (%1[0] == 1 && %1[1] == 0))
AntiDEAmx()
{
     new 
gunz[][] =
     {
         
"Unarmed (Fist)",
         
"Brass K"
     
};
     
#pragma unused gunz
}

//TOP KILLERS

new Players;
forward RankRefresh();

new 
Text:Classt[MAX_PLAYERS];
new 
Text:Spree;
new 
Text:Teams[MAX_PLAYERS];


//------------------------/*/
new ExplosionRadius 15//Explosion Radius

forward Explode(playerid);

new 
buyweapon;

new 
IsInGunShop[MAX_PLAYERS];
new 
GunShopID[MAX_PLAYERS];

new 
hashit[MAX_PLAYERS];


new 
C4[MAX_PLAYERS];
new 
Bomb[MAX_PLAYERS];
new 
Planted[MAX_PLAYERS];
new 
Float:bx[MAX_PLAYERS], Float:by[MAX_PLAYERS], Float:bz[MAX_PLAYERS];
new 
pSpawned[MAX_PLAYERS];

new 
gunshop[8];

new 
PickedClass[MAX_PLAYERS] = 0;

new 
usingcomp[MAX_PLAYERS];

new 
hasbombs[MAX_PLAYERS];
new 
hasrepair[MAX_PLAYERS];

new 
healedrec[MAX_PLAYERS];

new 
repair[MAX_PLAYERS];

new 
SpawnP[MAX_PLAYERS];

forward GetClosestPlayer(p1);
forward Float:GetDistanceBetweenPlayers(p1,p2);

forward Txtreset();
public 
Txtreset()
{
    
TextDrawHideForAll(Spree);
    return 
1;
}

forward SettingPlayerTeam();

new 
nuke;


new 
AbleToSpawn[MAX_PLAYERS];



//NEW------------------------------------------------------------------------------------

static gTeam[MAX_PLAYERS];
new 
gPlayerClass[MAX_PLAYERS];
new 
EnteredArea[MAX_PLAYERS];
new 
CapturedBy// 0 ( none ) 1 ( USA ) 2 ( Germany )
new EnteredArea2[MAX_PLAYERS];
new 
CapturedBy2// 0 ( none ) 1 ( USA ) 2 ( Germany )
new EnteredArea3[MAX_PLAYERS];
new 
CapturedBy3// 0 ( none ) 1 ( USA ) 2 ( Germany )
new EnteredArea4[MAX_PLAYERS];
new 
CapturedBy4// 0 ( none ) 1 ( USA ) 2 ( Germany )
new EnteredArea5[MAX_PLAYERS];
new 
CapturedBy5// 0 ( none ) 1 ( USA ) 2 ( Germany )
new EnteredArea6[MAX_PLAYERS];
new 
CapturedBy6// 0 ( none ) 1 ( USA ) 2 ( Germany )
new EnteredArea7[MAX_PLAYERS];
new 
CapturedBy7// 0 ( none ) 1 ( USA ) 2 ( Germany )
new EnteredArea8[MAX_PLAYERS];
new 
CapturedBy8// 0 ( none ) 1 ( USA ) 2 ( Germany )
new EnteredArea9[MAX_PLAYERS];
new 
CapturedBy9// 0 ( none ) 1 ( USA ) 2 ( Germany )
new EnteredArea10[MAX_PLAYERS];
new 
CapturedBy10// 0 ( none ) 1 ( USA ) 2 ( Germany )
new EnteredArea11[MAX_PLAYERS];
new 
CapturedBy11;
new 
EnteredArea12[MAX_PLAYERS];
new 
CapturedBy12;
new 
EnteredArea13[MAX_PLAYERS];
new 
CapturedBy13;
new 
EnteredArea14[MAX_PLAYERS];
new 
CapturedBy14;
new 
EnteredArea15[MAX_PLAYERS];
new 
CapturedBy15;

new 
GeneralClass[MAX_PLAYERS][5];


new 
gscore;
new 
uscore;

new 
T1[MAX_PLAYERS];
new 
T2[MAX_PLAYERS];
new 
T3[MAX_PLAYERS];
new 
T4[MAX_PLAYERS];
new 
T5[MAX_PLAYERS];
new 
T6[MAX_PLAYERS];
new 
T7[MAX_PLAYERS];
new 
T8[MAX_PLAYERS];
new 
T9[MAX_PLAYERS];
new 
T10[MAX_PLAYERS];
new 
T11[MAX_PLAYERS];
new 
T12[MAX_PLAYERS];
new 
T13[MAX_PLAYERS];
new 
T14[MAX_PLAYERS];
new 
T15[MAX_PLAYERS];

new 
spree[MAX_PLAYERS];

new 
randperson[MAX_PLAYERS];

new 
hitman[MAX_PLAYERS];


new 
gmini;
new 
umini;

new 
uhit;
new 
ghit;


new 
USA;
new 
GERMANY;

new 
Ear;
new 
EarU;
new 
EarG;

new 
Town1;
new 
Town2;

new 
Resturant;
new 
ResturantU;
new 
ResturantG;

new 
Airfield;
new 
AirfieldU;
new 
AirfieldG;

new 
Diner;
new 
DinerU;
new 
DinerG;

new 
Cluck;
new 
CluckU;
new 
CluckG;

new 
OilPump;
new 
OilPumpU;
new 
OilPumpG;

new 
Oil;
new 
OilU;
new 
OilG;

new 
Beach;
new 
BeachU;
new 
BeachG;

new 
A;
new 
AU;
new 
AG;

new 
University;
new 
UniversityU;
new 
UniversityG;

new 
Gas;
new 
GasU;
new 
GasG;

new 
OS;
new 
OSU;
new 
OSG;

new 
T;
new 
TU;
new 
TG;

new 
D;
new 
DU;
new 
DG;

new 
OT;
new 
OTU;
new 
OTG;

enum cbinf seats };
new 
CargoBob[MAX_VEHICLES][cbinf];
new 
Barracks[MAX_VEHICLES][cbinf];

new 
nameee[20];


new 
IsInHunter[MAX_PLAYERS];
new 
IsInRhino[MAX_PLAYERS];

new 
nuked 0;


//////////// estos son solo NEW y DEFINE //// 
__________________
I'm so amazing that I amaze myself

Spanish for excellence.
marcelocent is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 01-15-2011 , 17:02   Re: What code is that??
Reply With Quote #2

A SA-MP plugin. (San Andreas Mutiplayer)

It uses Pawn too.
__________________
Arkshine is offline
marcelocent
Member
Join Date: Aug 2010
Old 01-23-2011 , 19:02   Re: What code is that??
Reply With Quote #3

Quote:
Originally Posted by Arkshine View Post
A SA-MP plugin. (San Andreas Mutiplayer)

It uses Pawn too.
thanks ^^
__________________
I'm so amazing that I amaze myself

Spanish for excellence.
marcelocent is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 02:09.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode