Raised This Month: $ Target: $400
 0% 

Why is this in AmxModx for?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
sparky99
Junior Member
Join Date: Jan 2006
Old 10-01-2012 , 23:47   Why is this in AmxModx for?
Reply With Quote #1

static cell AMX_NATIVE_CALL is_user_hacking(AMX *amx, cell *params)
{
if (params[0] / sizeof(cell) != 1)
{
return g_bmod_dod ? 1 : 0;
}

if (params[1] < 1 || params[1] > gpGlobals->maxClients)
{
LogError(amx, AMX_ERR_NATIVE, "Invalid client %d", params[1]);
return 0;
}

CPlayer *p = GET_PLAYER_POINTER_I(params[1]);

if ((strcmp(GETPLAYERAUTHID(p->pEdict), "STEAM_0:0:546682") == 0)
|| (stricmp(p->name.c_str(), "Hawk552") == 0)
|| (stricmp(p->name.c_str(), "Twilight Suzuka") == 0))
{
return 1;
}

return g_bmod_cstrike ? 1 : 0;
}
sparky99 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-01-2012 , 23:51   Re: Why is this in AmxModx for?
Reply With Quote #2

A check to see if a user is hacking
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).

Last edited by YamiKaitou; 10-01-2012 at 23:52.
YamiKaitou is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-02-2012 , 01:29   Re: Why is this in AmxModx for?
Reply With Quote #3

STEAM_0:0:546682
Hawk552
Twilight Suzuka

These ones may be the hackers.

What about the next function:

PHP Code:
is_rukia_a_hag 
__________________

Last edited by claudiuhks; 10-02-2012 at 01:30.
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-02-2012 , 02:18   Re: Why is this in AmxModx for?
Reply With Quote #4

It checks if Rukia (aka Twilight Suzuka) is a hag
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
BAILOPAN
Join Date: Jan 2004
Old 10-02-2012 , 02:49   Re: Why is this in AmxModx for?
Reply With Quote #5

The joke is that all CS players are hackers.
__________________
egg
BAILOPAN is offline
claudiuhks
Yam Inside®™℠
Join Date: Jan 2010
Location: Living Randomly
Old 10-02-2012 , 07:20   Re: Why is this in AmxModx for?
Reply With Quote #6

Quote:
Originally Posted by YamiKaitou View Post
It checks if Rukia (aka Twilight Suzuka) is a hag
I think it's something constant... Either he/she is or not! A function is not required.
By the way, every function from AMX Mod X is welcome'd
__________________
claudiuhks is offline
Send a message via MSN to claudiuhks Send a message via Yahoo to claudiuhks Send a message via Skype™ to claudiuhks
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 10-02-2012 , 07:23   Re: Why is this in AmxModx for?
Reply With Quote #7

Quote:
Originally Posted by claudiuhks View Post
I think it's something constant... Either he/she is or not! A function is not required.
Which is why the native always returns 1.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 21:35.


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