-
Notifications
You must be signed in to change notification settings - Fork 6
/
test.pwn
43 lines (37 loc) · 1.26 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
#include <a_samp>
#include "actor_robbery.inc"
main() {
new actor= Robbery_CreateActor(5, 192.168, 1.1, 1.10, 90, 1, 5000, 15000);
actor = Robbery_CreateActor(5, 192.168, 1.1, 1.10, 90, 1, 5000, 15000);
actor = Robbery_CreateActor(5, 192.168, 1.1, 1.10, 90, 1, 5000, 15000);
actor = Robbery_CreateActor(5, 192.168, 1.1, 1.10, 90, 1, 5000, 15000);
actor = Robbery_CreateActor(5, 192.168, 1.1, 1.10, 90, 1, 5000, 15000);
actor = Robbery_CreateActor(5, 192.168, 1.1, 1.10, 90, 1, 5000, 15000);
actor = Robbery_CreateActor(5, 192.168, 1.1, 1.10, 90, 1, 5000, 15000);
actor = Robbery_CreateActor(5, 192.168, 1.1, 1.10, 90, 1, 5000, 15000);
printf("total actors: %i", actor);
new
Float:x,
Float:y,
Float:z,
Float:ang,
skinid,
vwid,
_min,
_max;
Robbery_GetActorData(actor, skinid, x, y, z, ang, vwid, _min, _max);
printf("actor, skinid, x, y, z, ang, min, max", actor, skinid, x, y, z, ang, vwid, _min, _max);
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys) {
return 1;
}
public OnPlayerRequestRobbery(playerid, actorid) {
new exampleName[24];
GetPlayerName(playerid, exampleName, 24);
if(!strcmp(exampleName, "COP"))
{
SendClientMessage(playerid, -1, "COP no ROB.");
return 0; // Must return 0 for the robbery to not commence.
}
return 1;
}