Код:
#include <a_samp>
#include <YSI\y_ini>
#include <sscanf2>
#include <zcmd>
//Color defines
#define COLOR_GREY 0xAD9797FF
#define COLOR_GREEN 0x58AB54FF
#define COLOR_PURPLE 0x963A99FF
#define COLOR_YELLOW 0xEAFF03FF
#define COLOR_LIGHTBLUE 0x7ED5F2FF
#define COLOR_RED 0xFF0D1DFF
#define COLOR_WHITE 0xFFFFFFFF
//Defines regarding teams
#define TEAM_GROVE 1
#define TEAM_BALLAS 2
#define TEAM_GROVE_COLOR 0x00FF00AA // Bright Green
#define TEAM_BALLAS_COLOR 0x963A99FF // Blue
//defines regarding all dialogs dialogs
main()
{
print("\n----------------------------------");
print(" Jefferson Motel DeathMatch 9.5 by Blunt");
print("----------------------------------\n");
}
public OnGameModeInit()
{
SetGameModeText("JM-TDM 9.5");
ShowNameTags(1);
SetWorldTime(0);
DisableInteriorEnterExits();
//Grove street skins
AddPlayerClass(105,2194.1116,-1146.9642,1033.7969,279.8350,22,51,32,300,4,1);
AddPlayerClass(106,2194.1116,-1146.9642,1033.7969,279.8350,22,51,32,300,5,1);
AddPlayerClass(107,2194.1116,-1146.9642,1033.7969,279.8350,22,51,32,300,1,1);
AddPlayerClass(102,2194.1116,-1146.9642,1033.7969,279.8350,22,51,32,300,1,1);
AddPlayerClass(103,2194.1116,-1146.9642,1033.7969,279.8350,22,51,32,300,1,1);
AddPlayerClass(104,2194.1116,-1146.9642,1033.7969,279.8350,22,51,32,300,1,1);
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerPos(playerid, 259.2184,-41.4297,1002.0234);
SetPlayerFacingAngle(playerid, 89.9766);
SetPlayerInterior(playerid, 14);
SetPlayerCameraPos(playerid, 254.9213,-39.8146,1002.0234);
SetPlayerCameraLookAt(playerid, 259.2184,-41.4297,1002.0234);
return 1;
}
public OnPlayerConnect(playerid)
{
//Functions here
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
return 1;
}
public OnPlayerRequestSpawn(playerid)
{
return 1;
}
public OnPlayerSpawn(playerid)
{
return 1;
}
public OnPlayerDisconnect(playerid, reason)
{
return 1;
}
public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{
return 0;
}