Raised This Month: $51 Target: $400
 12% 

Simple Give weapon to Donators


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SnapDragon
Member
Join Date: Feb 2015
Location: Under the bridge close t
Old 02-19-2016 , 12:36   Simple Give weapon to Donators
Reply With Quote #1

Now when new update is out, Can someone create plugin what gives automatically Guns/nades to preset Flag owners?

Like with flag P you get automatically everytime when you respawn.
weapon_tagrenade x1
weapon_healthshot x4

If player dont die, It would resuply all of those to full again.

Thank you
__________________
-----------------------------------------------
////////////////////////////////////////////////
<><><><><><><><><><><><><>
<><>Check bans.VikVek.com<><><><>
<><><><><><><><><><><><><>
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\
-----------------------------------------------
SnapDragon is offline
Franc1sco
Veteran Member
Join Date: Oct 2010
Location: Spain (Madrid)
Old 02-19-2016 , 12:43   Re: Simple Give weapon to Donators
Reply With Quote #2

https://forums.alliedmods.net/showthread.php?t=279291
__________________
Veteran Coder -> Activity channel
Coding on CS2 and taking paid and free jobs.

Contact: Steam, Telegram or discord ( franug ).

You like my work? +Rep in my steam profile comments or donate.

Franc1sco is offline
Send a message via MSN to Franc1sco
SnapDragon
Member
Join Date: Feb 2015
Location: Under the bridge close t
Old 02-19-2016 , 13:01   Re: Simple Give weapon to Donators
Reply With Quote #3

Its not good enough.

My friend pelipoika made this version But, every time when someone respawns and he got syringes, It drop new 4 in ground instead of refill


PHP Code:
#include <sourcemod>
#include <sdktools>
#include <sdkhooks>
#include <cstrike>


public OnPluginStart()
{
    
HookEvent("player_spawn"Event_PlayerSpawn);
}

public 
Event_PlayerSpawn(Handle:event, const String:name[], bool:dontBroadcast)
{    
    
int client GetClientOfUserId(GetEventInt(event"userid"));
    
    if(
GetClientTeam(client) < 2) return;
    
    if(!(
GetUserFlagBits(client) & ADMFLAG_NEEDED)) return;

    
GivePlayerItem(client"weapon_healthshot");
    
GivePlayerItem(client"weapon_healthshot");
    
GivePlayerItem(client"weapon_healthshot");
    
GivePlayerItem(client"weapon_healthshot");
    
GivePlayerItem(client"weapon_tagrenade");

__________________
-----------------------------------------------
////////////////////////////////////////////////
<><><><><><><><><><><><><>
<><>Check bans.VikVek.com<><><><>
<><><><><><><><><><><><><>
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ \\\
-----------------------------------------------
SnapDragon 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 09:07.


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