T-Raw/Tyga Posted February 13, 2015 Posted February 13, 2015 Well,this is my Duals script i think that something is missing could help me? function dubleuzi() if getPlayerTeam(source) == "Desert Storm" then setPedStat ( source, 75, 1000 ) end end addEventHandler("onPlayerSpawn",getRootElement(),dubleuzi) function resetdubleuzi() if getPlayerTeam(source) == "Desert Storm" then setPedStat ( source, 75, 500 ) end end addEventHandler("onPlayerWasted",getRootElement(),resetdubleuzi)
Anubhav Posted February 13, 2015 Posted February 13, 2015 Use getTeamName( getPlayerTeam( source ) ) Why? It is because getPlayerTeam returns the userdata of team and you are comparing userdata with string. Instead, get the team team name using getTeamName See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Anubhav Posted February 14, 2015 Posted February 14, 2015 No problem See my some resources: Skin shop: https://community.multitheftauto.com/in ... ls&id=8008 Note script: https://community.multitheftauto.com/in ... ls&id=8009 Rules Panel: https://community.multitheftauto.com/in ... ls&id=8246 Random Money: https://community.multitheftauto.com/in ... ls&id=8718
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now