-
Notifications
You must be signed in to change notification settings - Fork 0
/
test.pwn
53 lines (43 loc) · 1.07 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
#include <a_samp>
#include <dissolveplayerscreen>
#include <YSI\y_colours>
#include <YSI\y_commands>
#include <YSI\y_hooks>
main()
{
}
hook OnGameModeInit()
{
AddPlayerClass(0, 0.0, 0.0, 6.0, 0.0, 0, 0, 0, 0, 0, 0);
return 1;
}
hook OnPlayerConnect(playerid)
{
SendClientMessage(playerid, -1, "Transition | Blank -> Black");
DissolvePlayerScreenToBlack(playerid, &Fade_OnPlayerConnect);
return Y_HOOKS_CONTINUE_RETURN_1;
}
Fade_OnPlayerConnect(playerid)
{
SendClientMessage(playerid, -1, "Transition | Black - Blank");
DissolvePlayerScreenToBlank(playerid, &ReturnToBlank);
}
ReturnToBlank(playerid)
{
SendClientMessage(playerid, -1, "Transition complete.");
}
YCMD:fade1(playerid, params[], help)
{
DissolvePlayerScreen(playerid, Y_RED | 0xFF, Y_ORANGE | 0xFF);
return 1;
}
YCMD:fade2(playerid, params[], help)
{
DissolvePlayerScreen(playerid, Y_ORANGE | 0xFF, Y_SKYBLUE | 0xFF);
return 1;
}
YCMD:fade3(playerid, params[], help)
{
DissolvePlayerScreen(playerid, Y_SKYBLUE | 0xFF, Y_BLACK | 0x00);
return 1;
}