-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathexample.pwn
56 lines (45 loc) · 1.12 KB
/
example.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
//by Seregamil
#include a_samp
#include streamer
#include polygons
main(){
}
new Float:zones_points_0[] = {
-50.0,-33.0,-25.0,-10.0,-3.0,-30.0,-50.0,-33.0
}; //(AREA) New Area
new Float:zones_points_1[] = {
37.0,-29.0,63.0,-10.0,88.0,-27.0,37.0,-29.0
}; //(AREA) New Area1
new Float:zones_points_2[] = {
-10.0,-69.0,46.0,-68.0,8.0,-88.0,-10.0,-69.0
}; //(AREA) New Area
new zones[ 3 ];
public OnGameModeInit(){
zones[ 0 ] = CreatePolygon( zones_points_0 );
zones[ 1 ] = CreatePolygon( zones_points_1 );
zones[ 2 ] = CreatePolygon( zones_points_2 );
return true;
}
public OnGameModeExit(){
return true;
}
public OnPlayerConnect(playerid){
return true;
}
public OnPlayerDisconnect(playerid, reason){
return true;
}
public OnPlayerSpawn(playerid){
PolygonShowForPlayer(playerid, zones[ 0 ]);
PolygonShowForPlayer(playerid, zones[ 1 ]);
PolygonShowForPlayer(playerid, zones[ 2 ]);
return true;
}
public OnPlayerEnterPolygon( playerid, polygonid ){
PolygonFlashForPlayer( playerid, polygonid );
return true;
}
public OnPlayerLeavePolygon( playerid, polygonid ){
PolygonStopFlashForPlayer( playerid, polygonid );
return true;
}