AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Model Protector - The Specialists (https://forums.alliedmods.net/showthread.php?t=24396)

ng1200 02-21-2006 06:26

Model Protector - The Specialists
 
hi,
i got a problem with my code.
pepole can use the protected models.
i used this code to protect em:

Code:
/* Plugin generated by AMXX-Studio */ #include <amxmodx> #include <amxmisc> #define PLUGIN "Protected Models" #define VERSION "1.0" #define AUTHOR "CBM" public plugin_init() {     register_plugin(PLUGIN, VERSION, AUTHOR)         // Add your code here... } public client_infochanged(id) {     new model[33], authid[32]     get_user_authid(id,authid,31)     get_user_info(id,"model",model,32)     if(equali(model,"alhazblue") && !equali(authid,"STEAM_0:0:5968622"))     {         client_print(id,print_chat,"[ProtectModel] Sorry but this model is protected.")         set_user_info(id,"model","gordon")     }     if(equali(model,"alhazred") && !equali(authid,"STEAM_0:1:2334817"))     {         client_print(id,print_chat,"[ProtectModel] Sorry but this model is protected.")         set_user_info(id,"model","gordon")     }     return PLUGIN_HANDLED }
but some pepole without my steamid, can use my model - alhazblue
help?

Kraugh 02-21-2006 16:26

instead of using set_user_info, try using this:
Code:
engclient_cmd(id,"model","gordon");

if that doesn't work then just use this:
Code:
client_cmd(id,"model gordon");


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

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