Raised This Month: $ Target: $400
 0% 

Awp india weaponswar


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
ish12321
Veteran Member
Join Date: May 2016
Old 04-05-2017 , 04:57   Awp india weaponswar
Reply With Quote #1

Maps like awp india which give weapons on spawn
there when i hook spawn post and remove all weapons and give a specific weapon
the map removes that weapon and the player at end got no weapon but just knife
how to solve this ?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here

Last edited by ish12321; 04-05-2017 at 04:58.
ish12321 is offline
OciXCrom
Veteran Member
Join Date: Oct 2013
Location: Macedonia
Old 04-05-2017 , 10:19   Re: Awp india weaponswar
Reply With Quote #2

Give him a knife.
Here's a plugin that removes weapons on such maps.
__________________

Last edited by OciXCrom; 04-05-2017 at 10:20.
OciXCrom is offline
Send a message via Skype™ to OciXCrom
ish12321
Veteran Member
Join Date: May 2016
Old 04-06-2017 , 01:18   Re: Awp india weaponswar
Reply With Quote #3

Weapons war is just for single round.
Like if i give him knife war i remove all others
But then as map does it after my plugin it removes the knife and thus the player has nothing....
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-06-2017 , 06:03   Re: Awp india weaponswar
Reply With Quote #4

maybe something like this, could work :
PHP Code:
#include <amxmodx>
#include <fun>
#include <hamsandwich>

#define PLUGIN "Spawn Player With knife"
#define VERSION "0.1"
#define AUTHOR "author"

public plugin_init()
{
    
register_plugin(PLUGINVERSIONAUTHOR)
    
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
}

public 
fw_PlayerSpawn_Post(id)
{
    
set_task(3.0"give_knife"id)
}
public 
give_knife(id)
{
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")

__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality
yas17sin is offline
Send a message via ICQ to yas17sin
ish12321
Veteran Member
Join Date: May 2016
Old 04-06-2017 , 21:48   Re: Awp india weaponswar
Reply With Quote #5

You mean a delay in action?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 04-07-2017 , 06:48   Re: Awp india weaponswar
Reply With Quote #6

Try setting a 1 second delay on Ham_Spawn and give him weapons.
__________________
edon1337 is offline
yas17sin
Veteran Member
Join Date: Oct 2016
Location: Morocco/Sale
Old 04-07-2017 , 07:16   Re: Awp india weaponswar
Reply With Quote #7

yeah like the code i gived you.
__________________
FINISHED WORKING ON : Attack On Titan Mod (100% Done).

FB Acc : FaceBook Account.

pic: http://prntscr.com/fszkke not good quality
yas17sin is offline
Send a message via ICQ to yas17sin
Natsheh
Veteran Member
Join Date: Sep 2012
Old 04-08-2017 , 13:48   Re: Awp india weaponswar
Reply With Quote #8

You could remove the player equipments entity
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
ish12321
Veteran Member
Join Date: May 2016
Old 04-11-2017 , 17:47   Re: Awp india weaponswar
Reply With Quote #9

https://github.com/s1lentq/reapi/issues/66

What about this ?
__________________
['O|s|G'] | Death Wins a.k.a Ish Chhabra was here
ish12321 is offline
sirerick
Senior Member
Join Date: Jul 2012
Location: Venezuela
Old 04-11-2017 , 19:03   Re: Awp india weaponswar
Reply With Quote #10

test

PHP Code:
#include <amxmodx>
#include <engine>
#include <fun>
#include <hamsandwich>

public plugin_init()
{
    
RegisterHam(Ham_Spawn"player""fw_PlayerSpawn_Post"1)
}
public 
fw_PlayerSpawn_Post(id)
{
    if (!
is_user_alive(id))
        return
        
    
strip_user_weapons(id)
    
give_item(id"weapon_knife")
    
}    
public 
pfn_spawn(ent)
{
    if(!
is_valid_ent(ent))
        return 
PLUGIN_CONTINUE
        
    
static szClassname[33]
    
entity_get_string(entEV_SZ_classnameszClassnamecharsmax(szClassname))
    
    if(
equal(szClassname"armoury_entity"))
    
remove_entity(ent)
        
    return 
PLUGIN_CONTINUE

__________________
√ Zombie plague + greats updates. finished.
√ Surf-Mod level + greats updates Finished.
√ Zombie Scenario like cso. Finished.
Click Here
√ Call Of Duty MOD. Finished.
Click Here


Sorry for my bad english. I'm using translate.
sirerick is offline
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 17:53.


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