Wtf is this ?
#7

ok sry guys here it is:

#include <a_samp>
#include <core>
#include <a_vehicles>


#define TEAM_COP
#define TEAM_COP_COLOR 0x0000BBAA
#define TEAM_FBI
#define TEAM_FBI_COLOR 0x660000AA
#define TEAM_MEDIC
#define TEAM_MEDIC_COLOR 0x0000BBAA
#define TEAM_AIRFORCE
#define TEAM_AIRFORCE_COLOR 0x24FF0AB9
#define TEAM_TAXI
#define TEAM_TAXI_COLOR 0xFFFF00AA

new gTeam[MAX_PLAYERS];

SetPlayerTeamFromClass(playerid, classid)
{
if (classid == 28
{
gTeam[playerid] = TEAM_COP;
}
else if (classid == 283)
{
gTeam[playerid] = TEAM_COP;
}
else if (classid == 283)
{
gTeam[playerid] = TEAM_COP;
}
else if (classid == 274)
{
gTeam[playerid] = TEAM_MEDIC;
}
else if (classid == 275)
{
gTeam[playerid] = TEAM_MEDIC;
}
else if (classid == 276)
{
gTeam[playerid] = TEAM_MEDIC;
}
else if (classid == 163)
{
gTeam[playerid] = TEAM_FBI;
}
else if (classid == 164)
{
gTeam[playerid] = TEAM_FBI;
}
else if (classid == 165)
{
gTeam[playerid] = TEAM_FBI;
}
else if (classid == 166)
{
gTeam[playerid] = TEAM_FBI;
}
else if (classid == 121)
{
gTeam[playerid] = TEAM_AIRFORCE;
}
else if (classid == 179)
{
gTeam[playerid] = TEAM_AIRFORCE;
}
else if (classid == 55)
{
gTeam[playerid] = TEAM_TAXI;
}
}

SetPlayerToTeamColor(playerid)
{
if (gTeam[playerid] == TEAM_COP)
{
SetPlayerColor(playerid, TEAM_COP_COLOR);
}
else if (gTeam[playerid] == TEAM_MEDIC)
{
SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
}
else if (gTeam[playerid] == TEAM_MEDIC)
{
SetPlayerColor(playerid, TEAM_MEDIC_COLOR);
}
else if (gTeam[playerid] == TEAM_AIRFORCE)
{
SetPlayerColor(playerid, TEAM_AIRFORCE_COLOR);
}
else if (gTeam[playerid] == TEAM_TAXI)
{
SetPlayerColor(playerid, TEAM_TAXI_COLOR);
}

#if defined FILTERSCRIPT

#else

main()
{
print("\n----------------------------------");
print(" Blank Gamemode by your name here");
print("----------------------------------\n");
}

#endif

//COLORS
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_BRIGHTRED 0xFF0000AA
#define COLOR_INDIGO 0x4B00B0AA
#define COLOR_VIOLET 0x9955DEEE
#define COLOR_LIGHTRED 0xFF99AADD
#define COLOR_SEAGREEN 0x00EEADDF
#define COLOR_GRAYWHITE 0xEEEEFFC4
#define COLOR_LIGHTNEUTRALBLUE 0xabcdef66
#define COLOR_GREENISHGOLD 0xCCFFDD56
#define COLOR_LIGHTBLUEGREEN 0x0FFDD349
#define COLOR_NEUTRALBLUE 0xABCDEF01
#define COLOR_LIGHTCYAN 0xAAFFCC33
#define COLOR_LEMON 0xDDDD2357
#define COLOR_MEDIUMBLUE 0x63AFF00A
#define COLOR_NEUTRAL 0xABCDEF97
#define COLOR_BLACK 0x00000000
#define COLOR_NEUTRALGREEN 0x81CFAB00
#define COLOR_DARKGREEN 0x12900BBF
#define COLOR_LIGHTGREEN 0x24FF0AB9
#define COLOR_DARKBLUE 0x300FFAAB
#define COLOR_BLUEGREEN 0x46BBAA00
#define COLOR_PINK 0xFF66FFAA
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_DARKRED 0x660000AA
#define COLOR_ORANGE 0xFF9900AA
#define COLOR_PURPLE 0x800080AA
#define COLOR_GRAD1 0xB4B5B7FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_RED1 0xFF0000AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_GREEN 0x33AA33AA
#define COLOR_RED 0xAA3333AA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_WHITE 0xFFFFFFAA
#define COLOR_BROWN 0x993300AA
#define COLOR_CYAN 0x99FFFFAA
#define COLOR_TAN 0xFFFFCCAA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_KHAKI 0x999900AA
#define COLOR_LIME 0x99FF00AA
#define COLOR_SYSTEM 0xEFEFF7AA
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD4 0xD8D8D8FF
#define COLOR_GRAD6 0xF0F0F0FF
#define COLOR_GRAD2 0xBFC0C2FF
#define COLOR_GRAD3 0xCBCCCEFF
#define COLOR_GRAD5 0xE3E3E3FF
#define COLOR_GRAD1 0xB4B5B7FF

public OnGameModeInit()
{
// Don't use these lines if it's a filterscript
SetGameModeText("Blank Script");
//MEDIC'S
AddPlayerClass(274,1607.1361,1820.2712,10.8280,0.5 015,0,0,0,0,0,0); // MEDIC
AddPlayerClass(275,1614.9767,1820.2704,10.8280,2.0 682,0,0,0,0,0,0); // MEDIC
AddPlayerClass(276,1599.9725,1820.8362,10.8203,358 .9348,0,0,0,0,0,0); // MEDIC
//COP'S
AddPlayerClass(288,-215.2224,977.9517,19.4878,269.7672,0,0,0,0,0,0); // Fort Carson Sherif
AddPlayerClass(283,-215.3469,980.7720,19.4937,271.3338,0,0,0,0,0,0); //Fort Carson Sherif
AddPlayerClass(192,2239.0042,2449.4736,11.0372,267 .9772,0,0,0,0,0,0); // 12.spawm police police station in LV- emerde isle
//FBI'S
AddPlayerClass(163,945.8929,1728.4990,8.8516,268.5 575,0,0,0,0,0,0); // FBI at Whitewood estate
AddPlayerClass(164,945.8641,1731.7333,8.8516,271.0 641,0,0,0,0,0,0); // FBI at Whitewood estate
AddPlayerClass(165,945.9214,1734.8145,8.8516,272.9 442,0,0,0,0,0,0); // FBI at Whitewood estate
AddPlayerClass(166,945.7820,1737.5703,8.8516,273.8 842,0,0,0,0,0,0); // FBI at Whitewood estate
//AIRFORCE'S
AddPlayerClass(121,283.0263,1937.0424,17.6406,270. 6100,0,0,0,0,0,0); // Airforce at Arena 69
AddPlayerClass(179,279.2265,1835.0978,17.6481,11.4 120,0,0,0,0,0,0); // Airforce at Arena 69
//TAXI'S
AddPlayerClass(55,2846.2561,1289.7943,11.3906,88.8 027,0,0,0,0,0,0); // TAXI at Taxi station in LV

return 1;
}

public OnGameModeExit()
{
return 1;
}

public OnPlayerRequestClass(playerid, classid)
{
SetPlayerTeamFromClass(playerid, classid);

SetPlayerPos(playerid, 2006.3486,1669.9321,13.3020);
SetPlayerFacingAngle(playerid,269.1799);
SetPlayerCameraPos(playerid, 2018.2972,1669.7803,11.1539);
SetPlayerCameraLookAt(playerid, 2006.3486,1669.9321,13.3020);
return 1;
}

public OnPlayerRequestSpawn(playerid)
{
return 1;
}

public OnPlayerConnect(playerid)
{
SendClientMessage(playerid,0x33AA33AA,"Welcome to the server");
SendClientMessage(playerid,0x33AA33AA,"Read /rules /scmds For Start Playing Easier");
SendClientMessage(playerid,0x33CCFFAA,"Die Hard Cops and Robbers Server! Play Fair and Have Fun");
GameTextForPlayer(playerid,"~r~Die Hard ~w~Server Cops and Robbers ~r~MAP:~b~Las Venturas ~y~Have Fun ~r~And Read /rules /scmds",5000,5);

return 1;
}

public OnPlayerDisconnect(playerid, reason)
{
return 1;
}

public OnPlayerSpawn(playerid)
{
SetPlayerToTeamColor(playerid);
GivePlayerMoney(playerid,1000);
return 1;
}

public OnPlayerDeath(playerid, killerid, reason)
{
SendClientMessage(playerid,0xAA3333AA,"You are death! R.I.P");
ResetPlayerMoney(playerid);
GivePlayerMoney(playerid,-500);
SetPlayerScore(playerid,-1);

return 1;
}

thats all what i have for my gamemode atm i am adding teams u can see on start of script

try t ohelp me now

TY
Reply


Messages In This Thread
Wtf is this ? - by Geekzor - 10.06.2009, 21:57
Re: Wtf is this ? - by Correlli - 10.06.2009, 21:59
Re: Wtf is this ? - by gpclan - 10.06.2009, 22:41
Re: Wtf is this ? - by MrPanz - 10.06.2009, 22:43
Re: Wtf is this ? - by efeX - 10.06.2009, 22:52
Re: Wtf is this ? - by Joe Staff - 11.06.2009, 00:04
Re: Wtf is this ? - by Geekzor - 11.06.2009, 12:40
Re: Wtf is this ? - by Think - 11.06.2009, 12:57
Re: Wtf is this ? - by Geekzor - 11.06.2009, 13:10
Re: Wtf is this ? - by Correlli - 11.06.2009, 15:56

Forum Jump:


Users browsing this thread: 1 Guest(s)