PHP код:
#include <a_samp>
#define DIALOG_WELCOME 2
#define COLOR_LIGHTBLUE 0x33CCFFAA
#define COLOR_RED 0xAA3333AA
#define COLOR_GREY 0xAFAFAFAA
#define COLOR_YELLOW 0xFFFF00AA
#define COLOR_PINK 0xFF66FFAA
#define COLOR_BLUE 0x0000BBAA
#define COLOR_WHITE 0xFFFFFFAA
#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
#define PRESSED
main()
{
print("\n----------------------------------");
print(" Snipers vs Stunters by Fahad Loaded!");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetGameModeText("Snipers vs Stunters");
/*==============================================================================
Spawn
==============================================================================*/
AddPlayerClass(29,442.7135,327.6956,12.2372,12.8424,0,0,0,0,0,0); //
AddPlayerClass(29,435.8198,324.4298,12.2372,9.0406,0,0,0,0,0,0); //
AddPlayerClass(29,442.6411,398.6443,12.2372,89.7560,0,0,0,0,0,0); //
AddPlayerClass(29,442.7808,401.5859,12.2372,269.7560,0,0,0,0,0,0); //
AddPlayerClass(29,182.5994,353.2407,48.9953,247.9027,0,0,0,0,0,0); //
AddPlayerClass(29,169.1087,353.3642,48.9556,304.9298,0,0,0,0,0,0); //
AddPlayerClass(29,169.0676,386.6211,48.8953,27.9849,0,0,0,0,0,0); //
AddPlayerClass(29,182.8820,386.3429,48.9306,291.1848,0,0,0,0,0,0); //
AddPlayerClass(29,174.1843,372.2279,48.9306,273.9305,0,0,0,0,0,0); //
AddPlayerClass(29,-19.6579,371.1052,12.1687,269.1699,0,0,0,0,0,0); //
AddPlayerClass(29,-19.4724,360.4118,12.1687,268.2925,0,0,0,0,0,0); //
AddPlayerClass(29,-19.6047,377.2323,12.1687,267.1228,0,0,0,0,0,0); //
/*==============================================================================
map
==============================================================================*/
Removed...
/*============================================================================//
Vehicles
//============================================================================*/
AddStaticVehicle(415,-15.2823,378.0317,12.1687,0,-1,-1);
AddStaticVehicle(522,-15.6546,367.7870,12.1687,0,-1,-1);
AddStaticVehicle(506,-15.4606,360.5143,12.1687,0,-1,-1);
AddStaticVehicle(521,-15.1874,353.8620,12.1687,0,-1,-1);
return 1;
//============================================================================//
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
return 1;
}
public OnPlayerConnect(playerid)
{
GameTextForPlayer(playerid,"~g~Welcome to Sniper vs Stunters Arena",4000,4);
SetWeather(5);
return 1;
}
/*==============================================================================
Commands
==============================================================================*/
public OnPlayerCommandText(playerid, cmdtext[])
{
if (strcmp ("/credits", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"- Credits :Server Owner : .FaHaD.");
SendClientMessage(playerid,COLOR_LIGHTBLUE,"- MAP Created by : Ceedie.");
return 1;
}
if(strcmp(cmdtext, "/kill", cmdtext, true, 10) == 0)
{
SetPlayerHealth(playerid,0);
SendClientMessage(playerid,COLOR_ORANGE, ">> SERVER: You used command /kill & Died.");
return 1;
}
if (strcmp ("/help", cmdtext, true, 10) == 0)
{
SendClientMessage(playerid,COLOR_GREEN," HELP : - Snipers,Try to kill the stunters with your weapon");
SendClientMessage(playerid,COLOR_SEAGREEN," - Stunters,Try to kill the snipers with the Vehicles Given. Have Fun!");
return 1;
}
return 0;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
GameTextForPlayer(playerid,"~r~ Use ~b~ LALT ~g~ For Nitro!",4000,40);
return 1;
}
//==============================================================================