Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include < amxmodx >
- #include < amxmisc >
- #include < hamsandwich >
- #define PLUGIN "Multirules"
- #define VERSION "1.0"
- #define AUTHOR "anderseN"
- const gHudRed = 75;
- const gHudGreen = 75;
- const gHudBlue = 75;
- const Float:gfTextX = 0.02;
- const Float:gfTextY = 0.25;
- const gHudEffects = 0;
- const Float:gfHudFxTime = 0.0;
- const Float:gfHudHoldTime = 20.5;
- const Float:gfHudFadeInTime = 0.25;
- const Float:gfHudFadeOutTime = 0.25;
- const gHudChannel = 1;
- new name[33][32]
- public plugin_init ( )
- {
- register_plugin ( PLUGIN, VERSION, AUTHOR )
- register_clcmd ( "say /rules", "CmdRules" )
- register_clcmd ( "say /server", "CmdServer" )
- register_clcmd ( "say /servers", "CmdServer" )
- RegisterHam ( Ham_Spawn,"player","FwdPlayerSpawn",1 )
- }
- public client_authorized ( id )
- {
- {
- set_task(1.0, "asd")
- }
- return PLUGIN_HANDLED
- }
- public FwdPlayerSpawn ( id )
- {
- if(get_user_team(id) == 2)
- {
- CmdRules ( id )
- }
- return PLUGIN_HANDLED;
- }
- public asd ( id )
- {
- CmdRules ( id )
- }
- public CmdRules ( id )
- {
- get_user_name(id, name[id], 31);
- set_hudmessage ( gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel )
- show_hudmessage ( id, "Welcome back, %s^nPlease read our rules:^n^n1. No Understab^n2. No Underblock^n3. No Teamblock^n4. No Bodyblock^n5. No Use of buggs^n6. No Advertising^n7. No Funjumping (FJ)^n8. No Winning team join (WTJ)^n9. No bhop, gstrafe script etc^n10. No Screaming in your michrophone^n^n**** Report cheaters to support@restless-gaming.com ****^nType /rules if you want to se the rules again",name[id])
- }
- public CmdServer ( id )
- {
- set_hudmessage(gHudRed, gHudGreen, gHudBlue, gfTextX, gfTextY, gHudEffects, gfHudFxTime, gfHudHoldTime, gfHudFadeInTime, gfHudFadeOutTime, gHudChannel);
- show_hudmessage ( id, "Server 1 - HideNseek [EasyBlocks]^nIP: srv1.restless-gaming.com^n^nServer 2 - Superhero Mod^nIP: srv2.restless-gaming.com" )
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement