Raised This Month: $ Target: $400
 0% 

[Req] First Round only Knife with Message


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 12-25-2013 , 18:04   [Req] First Round only Knife with Message
Reply With Quote #1

How can I make Round 1 will only knives and see MESSAGE that Round 1 [only knife] until the end of Round and Round aftermath do sv_restart 1?

Last edited by Fuck For Fun; 12-26-2013 at 02:07.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 12-25-2013 , 18:47   Re: [Req] First Round only Knife with Message
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=138614
UchihaSkills is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 12-25-2013 , 18:56   Re: [Req] First Round only Knife with Message
Reply With Quote #3

Too many things one Code

I want a simple code by my req.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
UchihaSkills
Senior Member
Join Date: May 2013
Location: Germany
Old 12-25-2013 , 23:58   Re: [Req] First Round only Knife with Message
Reply With Quote #4

https://forums.alliedmods.net/search.php

Last edited by UchihaSkills; 12-26-2013 at 00:00.
UchihaSkills is offline
Fuck For Fun
Veteran Member
Join Date: Nov 2013
Old 12-26-2013 , 01:42   Re: [Req] First Round only Knife with Message
Reply With Quote #5

Quote:
Originally Posted by UchihaSkills View Post
i have tried myself to do that req..but failed

i have this, the problem when only knife round end, start new round still only knife..


PHP Code:
#include <amxmodx>

new g_iRoundCount
new g_pcvarEnable

public plugin_init()
{
    
register_plugin("First Round Knife""0.1""ConnorMcLeod")

    
g_pcvarEnable register_cvar("frk_enabled""1")

    
register_logevent("eRoundEnd"2"1=Round_End")
    
register_event("TextMsg","eRestart","a","2&#Game_C","2&#Game_w")
    
register_event("CurWeapon""eCurWeapon""be""1=1""2!29")
}

public 
eRoundEnd()
{
    
g_iRoundCount++
}

public 
eRestart()
{
    
g_iRoundCount 0
}

public 
eCurWeapon(id)
{
    if(
g_iRoundCount || !get_pcvar_num(g_pcvarEnable))
        return
    
engclient_cmd(id"weapon_knife")

this too:
PHP Code:
#include <amxmodx>
#define PLUGIN  "FirstRoundKnife"
#define VERSION "0.1"
#define AUTHOR  "iG_os"

new bool:FirstRound true

public switchweapon(id)
{
   if (
FirstRound)
   {
      
engclient_cmd(id,"weapon_knife")
   }
   return 
PLUGIN_CONTINUE
}

public 
newround(id)
{
   if (
FirstRound)
   {
      
set_task(3.0"Mode_msg"id)
      }
   return 
PLUGIN_CONTINUE
}

public 
restartround(){
   
FirstRound true
   
return PLUGIN_CONTINUE
}

public 
end_round(){
   
FirstRound false
   
return PLUGIN_CONTINUE
}

public 
Mode_msg(id
{
   new 
msg[64]
   
format(msg,63,"Knife Round!")
   
set_hudmessage(5025550, -1.00.7006.010.00.50.15, -1)
   
show_hudmessage(id,msg)
}

public 
plugin_init(){
   
register_plugin(PLUGIN,VERSION,AUTHOR)
   
register_event("ResetHUD""newround""be")
   
register_event("TextMsg""restartround""a""2&#Game_C""2&#Game_w")
   
register_event("SendAudio""end_round""a""2&%!MRAD_terwin""2&%!MRAD_ctwin""2&%!MRAD_rounddraw")
   
register_event("CurWeapon""switchweapon""be""1=1","2!29")

bump..

Last edited by Fuck For Fun; 12-30-2013 at 16:15.
Fuck For Fun is offline
Send a message via Skype™ to Fuck For Fun
joshknifer
Veteran Member
Join Date: Jun 2011
Location: Denver, CO
Old 01-02-2014 , 18:18   Re: [Req] First Round only Knife with Message
Reply With Quote #6

http://forums.alliedmods.net/showthread.php?t=105239
__________________
joshknifer is offline
Send a message via Skype™ to joshknifer
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode