Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* Plugin generated by AMXX-Studio */
- #include < amxmodx >
- #include < hamsandwich >
- public plugin_init()
- {
- register_plugin( "Timeleft On Spawn", "v1.0", "+ColdWar" )
- RegisterHam( Ham_Spawn, "player", "Ham_PlayerSpawn_Post", 1 );
- }
- public Ham_PlayerSpawn_Post( client )
- {
- if( !is_user_connected( client ) || !is_user_alive( client ) )
- return HAM_IGNORED;
- new timeleft = get_timeleft( );
- new minutes = timeleft / 60;
- new seconds = timeleft % 60;
- client_print( client, print_chat, "[AMXX] Timeleft until restart - %i:%i", minutes, seconds );
- return HAM_IGNORED;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement