RSSy MYGO.pl Opublikowano Styczeń 17, 2024 o 16:58 RSSy Udostępnij Opublikowano Styczeń 17, 2024 o 16:58 #include < amxmodx > #include < fakemeta > public plugin_precache( ) { precache_model( "models/devil.mdl" ); } public plugin_init( ) { new const VERSION[ ] = "1.3"; register_plugin( "Santa Hat", VERSION, "xPaw" ); set_pcvar_string( register_cvar( "santa_hat", VERSION, FCVAR_SERVER ), VERSION ); if( !get_pcvar_num( register_cvar( "amx_santahat", "1" ) ) ) { return; } } public Hat(id) { if (is_user_alive(id) && is_user_steam(id)) { new iEntity = engfunc(EngFunc_CreateNamedEntity, engfunc(EngFunc_AllocString, "info_target")); if (pev_valid(iEntity)) { engfunc(EngFunc_SetModel, iEntity, "models/devil.mdl"); set_pev(iEntity, pev_movetype, MOVETYPE_FOLLOW); set_pev(iEntity, pev_aiment, id); set_pev(iEntity, pev_owner, id); } } } public client_putinserver(id) { Hat(id); } stock bool:is_user_steam(id) { new auth[65] get_user_authid(id,auth,64) if(contain(auth, "STEAM_0:0:") != -1 || contain(auth, "STEAM_0:1:") != -1) return true; return false; } I want to add hat only for steamid . can you help me? This plugin will add some devil things (horns and tail ) to one player , but this script is for all players , i want only for which steamid i add Przeczytaj cały wpis Odnośnik do komentarza Udostępnij na innych stronach Więcej opcji udostępniania...
Rekomendowane odpowiedzi