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

Issue unsolved


Post New Thread Reply   
 
Thread Tools Display Modes
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
CrimsonGT
Veteran Member
Join Date: Oct 2007
Location: Gainesville, FL
Old 03-02-2009 , 20:46   Re: Issue unsolved
Reply With Quote #2

if (StrEqual(weaponname, "weapon_scout", false))

should be

if (StrEqual(weaponname, "weapon_scout", false) || StrEqual(weaponname, "weapon_awp", false))

or whatever the awp name is.
__________________
CrimsonGT is offline
BOYSplayCS
BANNED
Join Date: Apr 2008
Location: Gainesville, FL
Old 03-02-2009 , 21:04   Re: Issue unsolved
Reply With Quote #3

Quote:
Originally Posted by CrimsonGT View Post
if (StrEqual(weaponname, "weapon_scout", false))

should be

if (StrEqual(weaponname, "weapon_scout", false) || StrEqual(weaponname, "weapon_awp", false))

or whatever the awp name is.
We both live in the same city.

Also, I do believe the awps name is weapon_awp or CSW_AWP.
BOYSplayCS is offline
Reply


Thread Tools
Display Modes

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


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