AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Suggestions / Requests (https://forums.alliedmods.net/forumdisplay.php?f=12)
-   -   rearm terror (https://forums.alliedmods.net/showthread.php?t=327100)

Cirovic 09-01-2020 10:41

rearm terror
 
okay so, im running plugin that gives people speed and gravity when they hold knife, problem is then TERROR spawns, he does not get speed and gravity.. he need to get rearmed with knife to get speed and gravity.. so it will be good if anyone can make after 1 sec of round start, terror get knife again.. hope u guys understand its hard to explain.

DjSoftero 09-05-2020 02:18

Re: rearm terror
 
you should attach the plugin here. Its a bad practice to fix one plugin with another plugin

Supremache 09-05-2020 07:15

Re: rearm terror
 
Quote:

Originally Posted by Cirovic (Post 2716251)
okay so, im running plugin that gives people speed and gravity when they hold knife, problem is then TERROR spawns, he does not get speed and gravity.. he need to get rearmed with knife to get speed and gravity.. so it will be good if anyone can make after 1 sec of round start, terror get knife again.. hope u guys understand its hard to explain.

Put your plugin and I will do what you want

Cirovic 09-05-2020 13:44

Re: rearm terror
 
no need for edit plugin, just need new plugin that will give terror KNIFE after 1 sec of round start.

Supremache 09-05-2020 14:12

Re: rearm terror
 
Quote:

Originally Posted by Cirovic (Post 2716787)
no need for edit plugin, just need new plugin that will give terror KNIFE after 1 sec of round start.

Okay then try this plugin
PHP Code:

#include <amxmodx>

public plugin_init() 
{
    
register_plugin("Give Knife When Round Start""1.0""Supremache")
    
register_event("HLTV",     "ev_RoundStart""a""1=0""2=0")
}

public 
ev_RoundStart(id)
{
    
engclient_cmd(id"weapon_knife");



Cirovic 09-05-2020 14:35

Re: rearm terror
 
only for terror bro

Bugsy 09-05-2020 15:01

Re: rearm terror
 
PHP Code:

    
#include <amxmodx>
#include <fun>

public plugin_init() 
{
    
register_plugin"Give Knife When Round Start" "1.0" "Supremache" );
    
register_event"HLTV" "ev_RoundStart" "a" "1=0" "2=0" );
}

public 
ev_RoundStart(id)
{
    
set_task1.0 "DelayGive" );
}

public 
DelayGive()
{
    new 
iPlayers32 ] , iNum iPlayer;
    
    
get_playersiPlayers iNum "e" "TERRORIST" );
    
    for ( new 
iNum i++ )
    {
        
iPlayer iPlayers];
        
        
strip_user_weaponsiPlayer );
        
give_itemiPlayer "weapon_knife" );
        
        
//Not sure if this is needed based on your request
        //engclient_cmd( iPlayer , "weapon_knife" );
    
}



Stefanos 09-05-2020 16:49

Re: rearm terror
 
can u check my request bugsy please https://forums.alliedmods.net/showthread.php?t=327149

Supremache 09-05-2020 17:09

Re: rearm terror
 
Quote:

Originally Posted by Stefanos (Post 2716815)
can u check my request bugsy please https://forums.alliedmods.net/showthread.php?t=327149

UFF, It's my problem if i did something wrong in my plugin, who used my plugin thinking i dont have any experience.

P.s: My plugin working perfectly but i didn't remmber you want it only for terrorist team and i was will edit it but i saw Bugsy gave you it but i want to tell you bugsy is professional but he can't reply on all of your requests.

P.s2: I have only 4 month when i learned scripting and i learning everything so fast and if i continue i think i will be professional

Stefanos 09-05-2020 23:11

Re: rearm terror
 
i dont get knife on start bugsy, and yeah, just to let you know, i have knife on round start but i need to get it again because speed of my knife get bugged.. so try maybe to my knife disappear and give again.. i hope u understand

Bugsy 09-06-2020 00:16

Re: rearm terror
 
It works fine for me. Would disarming the player and then giving knife at 1 second after round start solve the problem? I did this in my test to confirm it worked, and it did.

Stefanos 09-06-2020 00:56

Re: rearm terror
 
i think it would solve the problem, send me code

Bugsy 09-06-2020 10:48

Re: rearm terror
 
This is Cirovic's request/thread

Cirovic 09-06-2020 11:05

Re: rearm terror
 
we are 2 friends holding 1 server, can u send me code bugsy

Bugsy 09-06-2020 11:10

Re: rearm terror
 
Try the above

Cirovic 09-06-2020 11:42

Re: rearm terror
 
i think it worked.. can u please check just this for us and thats it..


I need this plugin to be edited:

http://prntscr.com/ub0r4o

this message to show only for player that got SLAY
and that message in red color please!

and please slay on 3 seconds, not every second, thanks <3

https://pastebin.com/c1BZzP05


All times are GMT -4. The time now is 09:02.

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