definitions for cloudys event system
This commit is contained in:
parent
75386728bf
commit
78e65c1408
@ -12,11 +12,11 @@
|
|||||||
* plugins mysql crashdetect sscanf streamer socket Whirlpool regex gvar FileManager profiler FCNPC
|
* plugins mysql crashdetect sscanf streamer socket Whirlpool regex gvar FileManager profiler FCNPC
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#pragma compat 1
|
#pragma compat 1
|
||||||
#pragma option -d3
|
#pragma option -d3
|
||||||
#pragma dynamic 7200000
|
#pragma dynamic 7200000
|
||||||
|
|
||||||
//#define DEBUG_MODE
|
#define DEBUG_MODE
|
||||||
|
|
||||||
#if defined DEBUG_MODE
|
#if defined DEBUG_MODE
|
||||||
#pragma option -d3
|
#pragma option -d3
|
||||||
@ -197,7 +197,7 @@ public OnServerUpdateTimer( )
|
|||||||
|
|
||||||
// better to store in a variable as we are getting the timestamp from hardware
|
// better to store in a variable as we are getting the timestamp from hardware
|
||||||
g_iTime = gettime( );
|
g_iTime = gettime( );
|
||||||
|
|
||||||
UpdatePlayerCounters();
|
UpdatePlayerCounters();
|
||||||
|
|
||||||
// for hooks
|
// for hooks
|
||||||
@ -408,7 +408,7 @@ public OnPlayerRequestClass( playerid, classid )
|
|||||||
TextDrawHideForPlayer( playerid, g_DoubleXPTD );
|
TextDrawHideForPlayer( playerid, g_DoubleXPTD );
|
||||||
p_MoneyBag{ playerid } = false;
|
p_MoneyBag{ playerid } = false;
|
||||||
CallLocalFunction( "OnPlayerUnloadTextdraws", "d", playerid );
|
CallLocalFunction( "OnPlayerUnloadTextdraws", "d", playerid );
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
public OnNpcConnect( npcid )
|
public OnNpcConnect( npcid )
|
||||||
@ -3425,12 +3425,14 @@ CMD:stoprob( playerid, params[ ] )
|
|||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if !defined __cloudy_event_system
|
||||||
CMD:exit( playerid, params[ ] ) return cmd_enter( playerid, params );
|
CMD:exit( playerid, params[ ] ) return cmd_enter( playerid, params );
|
||||||
CMD:enter( playerid, params[ ] )
|
CMD:enter( playerid, params[ ] )
|
||||||
{
|
{
|
||||||
GameTextForPlayer(playerid, "~n~~n~~r~~k~~VEHICLE_ENTER_EXIT~~n~~w~press this key in a enterable checkpoint.", 5000, 3);
|
GameTextForPlayer(playerid, "~n~~n~~r~~k~~VEHICLE_ENTER_EXIT~~n~~w~press this key in a enterable checkpoint.", 5000, 3);
|
||||||
return 1;
|
return 1;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
CMD:kill( playerid, params[ ] )
|
CMD:kill( playerid, params[ ] )
|
||||||
{
|
{
|
||||||
@ -7006,7 +7008,9 @@ stock IsPlayerAFK( playerid ) return ( ( GetTickCount( ) - p_AFKTime[ playerid ]
|
|||||||
|
|
||||||
stock GetPlayerVIPDuration( playerid ) return p_VIPExpiretime[ playerid ] - g_iTime;
|
stock GetPlayerVIPDuration( playerid ) return p_VIPExpiretime[ playerid ] - g_iTime;
|
||||||
|
|
||||||
|
#if !defined __cloudy_event_system
|
||||||
stock IsPlayerInEvent( playerid ) return ( GetPlayerVirtualWorld( playerid ) == 69 );
|
stock IsPlayerInEvent( playerid ) return ( GetPlayerVirtualWorld( playerid ) == 69 );
|
||||||
|
#endif
|
||||||
|
|
||||||
stock UpdatePlayerEntranceExitTick( playerid, seconds = 2 ) {
|
stock UpdatePlayerEntranceExitTick( playerid, seconds = 2 ) {
|
||||||
p_EntranceTimestamp[ playerid ] = g_iTime + seconds;
|
p_EntranceTimestamp[ playerid ] = g_iTime + seconds;
|
||||||
|
Loading…
Reference in New Issue
Block a user