25.06.2012, 02:16
hey i have this script cops and robber and i want add more skin but i cant add no more because when i add more a civil will be a cops and a cop skin will be a civil i want add more but not to mess up my cops and robbers onplayerrequest
script info!
PHP код:
AddPlayerClass(280, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
AddPlayerClass(281, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
AddPlayerClass(282, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
AddPlayerClass(283, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
AddPlayerClass(284, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
AddPlayerClass(288, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Police
AddPlayerClass(286, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // FBI
AddPlayerClass(285, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // SWAT
AddPlayerClass(287, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Army
AddPlayerClass(274, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Medic
AddPlayerClass(275, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Medic
AddPlayerClass(276, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Medic 20
AddPlayerClass(7, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 0
AddPlayerClass(11, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(19, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(21, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(23, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(28, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 5
AddPlayerClass(29, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(46, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(47, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(59, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(98, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 10
AddPlayerClass(101, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(116, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(124, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(186, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(188, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian 15
AddPlayerClass(223, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(240, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
AddPlayerClass(58, 1958.3783, 1343.1572, 15.3746, 269.1425, 0, 0, 0, 0, 0, 0); // Civilian
PHP код:
#include <a_samp>
#include <dudb>
#include <CPLoader>
#include <ladmin>
/*x---------------------------------Defining-------------------------------------x*/
//**COLORS*//
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BLUE 0x0000FFAA
#define blue 0x0000FFAA
#define COLOR_BROWN 0x993300AA
#define COLOR_ORANGE 0xFF9933AA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLACK 0x2C2727AA
#define COLOR_LIGHTCYAN 0xAAFFCC33
#define COLOR_LEMON 0xDDDD2357
#define COLOR_AQUA 0x7CFC00AA
#define COLOR_WHITEYELLOW 0xFFE87DFF
#define COLOR_BLUEAQUA 0x7E60FFFF
#define COLOR_DARKBLUE 0x15005EFF
#define COLOR_ALIEN 0x90FF87FF
#define COLOR_GOLD 0xB8860BAA
#define KICK_COLOR 0xFF0000FF
#define COLOR_GANGGREEN 0x00FF0096
#define COLOR_BLACK 0x2C2727AA
#define COLOR_SBLUE 0x00BFFFAA
#define WHITE 0xF6F6F6AA
#define GREY 0xC6C6C6AA
#define RED 0xF60000AA
#define COLOR_ERROR 0xF60000AA
#define COLOR_RED 0xAA3333AA
#define LIGHT_BLUE 0x00A4F6AA
#define BLUE 0x0000F6AA
#define DARK_BLUE 0x0000AFAA
#define LIGHT_GREEN 0x00F600AA
#define GREEN 0x00AD00AA
#define DARK_GREEN 0x005000AA
#define YELLOW 0xF6F600AA
#define ORANGE 0xF67F00AA
#define BLACK 0x000000AA
#define COLOR_ROYALBLUE 0x4169FFAA
#define PINK 0xFF6EC7AA
#define SERVER_COLOR 0x85F600AA
#define ERROR 0x990000AA
#define COLOR_MSG 0x00FFFFFF //Color of general messages
#define STUNNED_TIME 4 //The time in seconds the stun lasts
#define ANTISPAM 5 //The minimum allowed time between /taze commands
#define COLOR_KILLED 0x880000FF //The color, when a player gets killed by tazing
#define CIVILIAN 0
#define Medic 1
#define COP 2
#define FBI 3
#define SWAT 4
#define ARMY 5
//--------------Taxi-----------
#define BAJADA_DE_BANDERA 500
#define PRECIO_FICHA 300
#define COLOR_YELLOW 0xFFFF00AA
//-----------------------------
/* ----------HIT COMMAND----------*/
#define COLOR_FOUND 0xFFFF00AA //Color of the message if a hit was found in /hits
#define COLOR_MSG 0x00FFFFFF //Color of general messages
#define ANTISPAM_TIME 5 //The minimum time between /hit commands to prevent spam (in seconds)
/*----------NO NEED TO EDIT FROM HERE----------*/
#define MAX_PLAYERS_ 50
#define SPAWN_GAS_MIN 35
#define SPAWN_GAS_MAX 100
#define MAX_START_TIME 3
#define BAJADA_DE_BANDERA2 500
#define PRECIO_FICHA2 300
#define RegisterName 1
#define LoginName 2
#define SendFormattedMessage(%0,%1,%2) do{new _str[128]; format(_str,128,%2); SendClientMessage(%0,%1,_str);}while(FALSE)
#define dcmd(%1,%2,%3) if ((strcmp((%3)[1], #%1, true, (%2)) == 0) && ((((%3)[(%2) + 1] == 0) && (dcmd_%1(playerid, "")))||(((%3)[(%2) + 1] == 32) && (dcmd_%1(playerid, (%3)[(%2) + 2]))))) return 1
static gTeam[MAX_PLAYERS];
new GPSTimer[MAX_PLAYERS];
new bool:HaveGPS[MAX_PLAYERS];
enum aInfo
{
aLevel
}
;
new AccountInfo[MAX_PLAYERS][aInfo];
new RecentlyRobbed[MAX_PLAYERS];
new ATMRecentlyRobbed;
new DildoRecentlyRobbed;
new HallRecentlyRobbed;
new RentalRecentlyRobbed;
new BankRecentlyRobbed;
new BincoRecentlyRobbed;
new ZipRecentlyRobbed;
new UrbanRecentlyRobbed;
new AmmuRecentlyRobbed;
new Ammu2RecentlyRobbed;
new Ammu3RecentlyRobbed;
new Ammu4RecentlyRobbed;
new Ammu5RecentlyRobbed;
new DrugsRecentlyRobbed;
new D4RecentlyRobbed;
new CaRecentlyRobbed;
new gPlayerUsingLoopingAnim[MAX_PLAYERS];
new animation[200];
//BUS
new OnBusAsPassenger[MAX_PLAYERS];
new CostoDelViaje2[MAX_PLAYERS];
new contador2[MAX_PLAYERS];
new playerInMiniMission2[MAX_PLAYERS];
new avisado2[MAX_PLAYERS];
new caidadeficha2Timer2;
new cantidadPasajeros2;
forward terminarMission2(playerid);
forward caidadeficha2();
//
new IsSpawned[MAX_PLAYERS];
new SelectBM[MAX_PLAYERS];
new PlayerSkin[MAX_PLAYERS];
new SelectTM[MAX_PLAYERS];
new InTrashMission[MAX_PLAYERS];
new time;
new Muted[MAX_PLAYERS];