This repository was archived by the owner on Mar 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathtest.pwn
167 lines (148 loc) · 4.66 KB
/
test.pwn
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
// generated by "sampctl package generate"
#include "a_samp.inc"
#include "Anti_cheat_pack.inc"
main() {
CreateVehicle(561, 0.0, 0.0, 0.0, 0.0, 0, 0, 0);
}
public OnPlayerFakeKill(playerid, spoofedid, spoofedreason, faketype)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d just spoof killed ID %d reason %d type %d", playerid, spoofedid, spoofedreason, faketype);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerFakeConnect(playerid)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d is fake connecting!", playerid);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerJetpackCheat(playerid)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d is using jetpack cheats!", playerid);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerGodmode(playerid, gmtype)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d is using godmode cheats type %d!", playerid, gmtype);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerSpamChat(playerid)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d is spamming chat!", playerid);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerGunCheat(playerid, weaponid, ammo, hacktype)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d just used weapon cheats weapon %d ammo %d type %d!", playerid, weaponid, ammo, hacktype);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerSpeedCheat(playerid, speedtype)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d just speed cheats type %d!", playerid, speedtype);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerBreakAir(playerid, breaktype)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d used airbreak/teleport cheats type %d !", playerid, breaktype);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerSpamCars(playerid, number)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d used car spammed %d vehicles !", playerid, number);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerCarTroll(playerid, vehicleid, trolledid, trolltype)
{
new Test_String[80];
if(trolledid == INVALID_PLAYER_ID)
format(Test_String, sizeof(Test_String), "ID %d used car troll cheats vehicle %d type %d !", playerid, vehicleid, trolltype);
else
format(Test_String, sizeof(Test_String), "ID %d used car troll cheats on ID %d vehicle %d type %d !", playerid, trolledid, vehicleid, trolltype);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerCashCheat(playerid, oldcash, newcash, amount)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d used money cheats for %d !", playerid, amount);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerCarSwing(playerid, vehicleid)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d used car swing cheats vehicle %d !", playerid, vehicleid);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerParticleSpam(playerid, vehicleid)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d used car particle spam cheats vehicle %d !", playerid, vehicleid);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnVehicleModEx(playerid, vehicleid, componentid, illegal)
{
new Test_String[80];
if(illegal)
{
format(Test_String, sizeof(Test_String), "ID %d used car mod cheats component %d vehicle %d !", playerid, componentid, vehicleid);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
}
return 1;
}
public OnPlayerSlide(playerid, weaponid, Float:speed)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d is slide bugging weapon %d !", playerid, weaponid);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerLagout(playerid, lagtype, ping)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d is lagging type %d ping %d !", playerid, lagtype, ping);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}
public OnPlayerBugAttempt(playerid, bugcode)
{
new Test_String[80];
format(Test_String, sizeof(Test_String), "ID %d is using bug cheats type %d!", playerid, bugcode);
SendClientMessageToAll(-1, Test_String);
print(Test_String);
return 1;
}