forked from ScavengeSurvive/personal-space
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtest.pwn
31 lines (21 loc) · 734 Bytes
/
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
#include <test-boilerplate>
#include "personal-space.inc"
main() {
//
}
public OnPlayerApproachPlayer(playerid, targetid, E_APPROACH_DIRECTION:fromDirection) {
new str[128];
format(str, 128, "You approached player %d from direction %d", targetid, _:fromDirection);
SendClientMessage(playerid, -1, str);
format(str, 128, "You were approached by player %d from direction %d", playerid, _:fromDirection);
SendClientMessage(targetid, -1, str);
return 0;
}
public OnPlayerLeavePlayer(playerid, targetid) {
new str[128];
format(str, 128, "You left player %d", targetid);
SendClientMessage(playerid, -1, str);
format(str, 128, "You were left by player %d", playerid);
SendClientMessage(targetid, -1, str);
return 0;
}