-------------------- -------------------- -------------------- -------

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
//------------------------------------------------------------------------------
// BOX
//
// Made by XiN
//------------------------------------------------------------------------------
#include <a_samp>
main()
{
print("Loaded BoX\n");
}
public OnGameModeInit()
{
SetGameModeText("BoX");
ShowPlayerMarkers(1);
ShowNameTags(1);
AddPlayerClass(80,762.8552,13.4039,1001.1639,136.2779,0,0,0,0,0,0); //
AddPlayerClass(81,758.5505,8.9508,1001.1639,310.7828,0,0,0,0,0,0); //
return 1;
}
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, 0x008000AA, "Добро пожаловать в бокс. Забей своего соперника досмерти, и получишь много бабла!");
GameTextForPlayer(playerid, "Kill Him!!!", 000, 3);
//Other stuff
return 1;
}
public OnPlayerRequestClass(playerid, classid)
{
SetPlayerCameraPos(playerid, 106, 106, 106);
SetPlayerPos(playerid, 106, 106, 106);
SetPlayerFacingAngle(playerid, 2);
SetPlayerCameraLookAt(playerid, 106, 106, 106);
SetPlayerInterior(playerid, 5);
return 1;
}
public OnPlayerSpawn(playerid)
{
SetPlayerInterior(playerid,0);
return 1;
}
public OnPlayerDeath(playerid, killerid, reason)
{
GivePlayerMoney(killerid, 5000);
SetPlayerScore(killerid, GetPlayerScore(killerid) + 1);
SendDeathMessage(killerid, playerid, reason);
return 1;
}