AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   can someone help me with this please! (https://forums.alliedmods.net/showthread.php?t=220057)

maximus.toby 07-06-2013 10:59

can someone help me with this please!
 
hello can someone help me with this please!
i have a jailbreak server with uaio_menu on it, but when revive someone with uaio_revive they get a gun, i did search how to make they get stripped when they spawn, and i did found it! BUT, when i put the plugin it it, its fine, but when i revive then they stip spawn with a gun but afther a sec they got a gun again and then its removes it again, but it that 1 sec you have a gun, you can drop the gun on the ground and pic it up again later, so thats not one, can someone help me to fix this, Thanks!

this is the lil code ^^
Code:

/* Plugin generated by AMXX-Studio */
 
#include <amxmodx>
#include <amxmisc>
#include <hamsandwich>
#include <fun>
 
#define PLUGIN "Block Revive Gun"
#define VERSION "1.0.0"
#define AUTHOR "Maxi"
 
 
public plugin_init() {
        register_plugin(PLUGIN, VERSION, AUTHOR)
        RegisterHam(Ham_Spawn, "player", "FwPlayerSpawnPost", 1)
}
 
public FwPlayerSpawnPost(id) {
        set_task(1.0, "StripWeapons", id)
}
 
public StripWeapons(id) {
        strip_user_weapons(id)
        give_item(id, "weapon_knife")
}


wickedd 07-06-2013 11:11

Re: can someone help me with this please!
 
You don't need a task to strip weapons.

DruGzOG 07-06-2013 11:55

Re: can someone help me with this please!
 
This is another thread that asks the same question you asked in every other thread that you have created. (What a sentence).

Check the other thread, I posted a reply.


All times are GMT -4. The time now is 06:21.

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