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

set_pev problem


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
undead52
Senior Member
Join Date: Dec 2016
Old 10-22-2017 , 12:14   set_pev problem
Reply With Quote #1

plugin get info from client but when it equal it effects all player how can i do for only the player
PHP Code:
get_user_info(id"_iSniper"silahcharsmax(silah));
public 
Event_CurWeapon(id
else if (
equal(silah"Intervention"))
    {
        if (
get_user_weapon(id) == CSW_AWP)
        {
            
set_pev(idpev_viewmodel2intervention)
        }
    } 

Last edited by undead52; 10-22-2017 at 12:44.
undead52 is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 10-22-2017 , 12:30   Re: set_pev problem
Reply With Quote #2

Show more code than that.
klippy is offline
undead52
Senior Member
Join Date: Dec 2016
Old 10-22-2017 , 12:43   Re: set_pev problem
Reply With Quote #3

i updated, it works but for it effects everyone
undead52 is offline
KiLLeR.
Senior Member
Join Date: Jul 2014
Location: Bulgaria
Old 10-22-2017 , 13:50   Re: set_pev problem
Reply With Quote #4

And you want to effect who?!
KiLLeR. is offline
undead52
Senior Member
Join Date: Dec 2016
Old 10-22-2017 , 14:29   Re: set_pev problem
Reply With Quote #5

it should work for everyone but it happens last updated player's info

i made a menu and who called it last, model load for his info for everyone

Last edited by undead52; 10-23-2017 at 09:47.
undead52 is offline
undead52
Senior Member
Join Date: Dec 2016
Old 10-23-2017 , 12:00   Re: set_pev problem
Reply With Quote #6

i want to player could select his weapon model how can i do that ?

i solved problem.

Last edited by undead52; 10-23-2017 at 12:16.
undead52 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 10-23-2017 , 13:08   Re: set_pev problem
Reply With Quote #7

Quote:
Originally Posted by undead52 View Post
i want to player could select his weapon model how can i do that ?

i solved problem.
You can make a menu with different skins, and store them using the native vault. Then, on player connect, the model will be read from the vault file containing the player's steamid. If you don't know how to use it, just search, bugsy made a tutorial for that.
DarthMan is offline
undead52
Senior Member
Join Date: Dec 2016
Old 10-23-2017 , 13:37   Re: set_pev problem
Reply With Quote #8

i already fix it with using different variables

Last edited by undead52; 10-23-2017 at 13:37.
undead52 is offline
DarthMan
Veteran Member
Join Date: Aug 2011
Old 10-23-2017 , 15:32   Re: set_pev problem
Reply With Quote #9

Quote:
Originally Posted by undead52 View Post
i already fix it with using different variables
Yeah but if you want to store by SteamID it's good to use nvault or mysql.
DarthMan 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 03:43.


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