AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Detect model change (https://forums.alliedmods.net/showthread.php?t=207567)

darktemplar 02-04-2013 06:08

Detect model change
 
Hi,
Anyone can tell me how to detect when a player change his/her model ?

Thanks ;)

Torge 02-04-2013 07:43

Re: Detect model change
 
Could be possible with boolean.

Kard1nal 02-04-2013 10:06

Re: Detect model change
 
PHP Code:

public plugin_init()
register_forward(FM_SetClientKeyValue"set_client_kv")

public 
set_client_kv(id, const info[], const key[])
{
if(
equal(key"model"))
    return 
FMRES_SUPERCEDE //or do whatever you want

return FMRES_IGNORED




All times are GMT -4. The time now is 20:37.

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