Sign in to follow this  
Erzengel

how to add respect ?

4 posts in this topic

what is the sqf line to add respect to an player for example after completeing a mission?

 

EDIT: allready got it. for those that also want to know how it works:

			_target = player;
			_playerscore = _target getVariable ['ExileScore', 0];
			_newscorevalue = _playerscore + 150;
			
			_target setVariable ['ExileScore', _newscorevalue];
			
			_target setVariable['PLAYER_STATS_VAR',[_target getVariable ['ExileMoney', 0],_newscorevalue],true];
			ExileClientPlayerScore = _newscorevalue;
			(owner _target) publicVariableClient 'ExileClientPlayerScore';
			
			format['setAccountScore:%1:%2', _newscorevalue, (getPlayerUID _target)] call ExileServer_system_database_query_fireAndForget;

in this case we add 150 respect to the player

Edited by Erzengel

Share this post


Link to post
Share on other sites
Advertisement
On 2.1.2018 at 5:06 AM, Super Jerome said:

You posted this in the wrong section mate. When you enter general discussions there's a big red banner that tells you this.

iam sorry. stil dont find the forum to post in most of the time ^^

Share this post


Link to post
Share on other sites
Advertisement

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.