AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   [Req] First Round only Knife with Message (https://forums.alliedmods.net/showthread.php?t=232115)

Fuck For Fun 12-25-2013 18:04

[Req] First Round only Knife with Message
 
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?

UchihaSkills 12-25-2013 18:47

Re: [Req] First Round only Knife with Message
 
https://forums.alliedmods.net/showthread.php?t=138614

Fuck For Fun 12-25-2013 18:56

Re: [Req] First Round only Knife with Message
 
Too many things one Code

I want a simple code by my req.

UchihaSkills 12-25-2013 23:58

Re: [Req] First Round only Knife with Message
 
https://forums.alliedmods.net/search.php

Fuck For Fun 12-26-2013 01:42

Re: [Req] First Round only Knife with Message
 
Quote:

Originally Posted by UchihaSkills (Post 2076436)

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..

joshknifer 01-02-2014 18:18

Re: [Req] First Round only Knife with Message
 
http://forums.alliedmods.net/showthread.php?t=105239


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

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