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

set experience


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
666
Senior Member
Join Date: Mar 2015
Old 11-03-2019 , 12:44   set experience
Reply With Quote #1

how to increase the experience to the team that won the round and decrease it to the losing team
__________________

Last edited by 666; 11-05-2019 at 12:59.
666 is offline
LearninG
Senior Member
Join Date: Apr 2019
Location: Iran
Old 11-03-2019 , 13:17   Re: set experience
Reply With Quote #2

Code:
register_logevent("Event_CTWin",6,"3=CTs_Win","3=All_Hostages_Rescued") register_logevent("Event_TerroristWin",6,"3=Terrorists_Win","3=Target_Bombed")
Code:
public Event_CTWin() {   new players[32] , pnum , id   get_players(players , pnum)   for (new i; i < pnum; i++)   {     id = players[i]     switch(cs_get_user_team(id))     {         case CS_TEAM_CT:         {           // Increase Experience         }         case CS_TEAM_T:         {           // Decrease Experience         }     }   } } public Event_TerroristsWin() {   new players[32] , pnum , id   get_players(players , pnum )   for (new i; i < pnum; i++)   {     id = players[i]     switch(cs_get_user_team(id))     {         case CS_TEAM_CT:         {           // Decrease Experience         }         case CS_TEAM_T:         {           // Increase Experience         }     }   } }

Last edited by LearninG; 11-04-2019 at 05:51.
LearninG is offline
Reply



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 07:05.


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