Raised This Month: $ Target: $400
 0% 

Issue unsolved


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Asend
New Member
Join Date: Mar 2009
Old 03-02-2009 , 20:33   Issue unsolved
Reply With Quote #1

(want awp no scope on my server)

Hi i have created a server and i have implanted "no scoutscope mod"
When i changed the weaponame it diasbled the mod,
Therefore i think it has to do with the "weapon name" because i changed it back to [32] and it worked again.

please help me i want a server noscope awp
any help deeply appriciated

Sean,


if (g_enabled && g_bulletpath)
{

new clientid = GetClientOfUserId(GetEventInt(event, "userid"));
new String:weaponname[32];
GetEventString(event, "weapon", weaponname, sizeof(weaponname));
if (StrEqual(weaponname, "scout", false))
{
DrawLaser(clientid);
}
}
}

public Action:EventWeaponZoom(Handle:event,const String:name[],bool:dontBroadcast)
{
if (g_enabled)
{
new client = GetClientOfUserId(GetEventInt(event, "userid"));
new String:weaponname[32];
GetClientWeapon(client, weaponname, sizeof(weaponname));
if (StrEqual(weaponname, "weapon_scout", false))
{
new weapon = GetPlayerWeaponSlot(client, 0);
if (IsValidEdict(weapon))
{
RemovePlayerItem(client, weapon);
RemoveEdict(weapon);
CreateTimer(0.1, GiveScout, client);
PrintHintText(client, "%t", "Not Allowed");
Asend is offline
 



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 13:30.


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