Raised This Month: $ Target: $400
 0% 

how to block TeamScore calculate ?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 05-03-2016 , 09:22   how to block TeamScore calculate ?
Reply With Quote #1

Hi !
as in the title ?
i want block calculate frag if killer PLAYERS or Dead ?
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 05-03-2016 , 09:30   Re: how to block TeamScore calculate ?
Reply With Quote #2

Quote:
Originally Posted by abdobiskra View Post
Hi !
as in the title ?
i want block calculate frag if killer PLAYERS or Dead ?

Can you explain better, didnt understand...
Quote:
calculate frag if killer PLAYERS or Dead
siriusmd99 is offline
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 05-03-2016 , 10:30   Re: how to block TeamScore calculate ?
Reply With Quote #3

i want make score and Deaths case 0
Ex :
if i kill 10 Playrs in score case no changed = 0 !

More detail :
i want change system score ( killing and Deths ) ===> to system gift point
so if player killed other = no add score
soory im bad in ENG (
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 05-03-2016 , 13:31   Re: how to block TeamScore calculate ?
Reply With Quote #4

I want to cancel calculate score in scoreboard when killing and Deaths !
i want add other system to calculate this score
__________________

Last edited by abdobiskra; 05-03-2016 at 13:46.
abdobiskra is offline
Send a message via Skype™ to abdobiskra
gabuch2
AlliedModders Donor
Join Date: Mar 2011
Location: Chile
Old 05-03-2016 , 13:34   Re: how to block TeamScore calculate ?
Reply With Quote #5

He wants to block score modification by regular means (frags, objectives) but he doesn't want to force it to 0 because he will use another plugin to manipulate the scoring.
__________________
gabuch2 is offline
Neeeeeeeeeel.-
Some Guy Yellin'
Join Date: Jul 2010
Location: Argentina
Old 05-03-2016 , 13:41   Re: how to block TeamScore calculate ?
Reply With Quote #6

Quote:
Originally Posted by Shattered Heart Lynx View Post
He wants to block score modification by regular means (frags, objectives) but he doesn't want to force it to 0 because he will use another plugin to manipulate the scoring.
Just the logic.
PHP Code:
new g_frags[33];
new 
g_deaths[33];

public 
my_custom_mega_plugin_func_for_super_score_super_cool_2016 (id){
   
g_frags[id] += 25;
   
g_deaths[id] += 45;
   
set_user_frags(idg_frags[id]);
   
set_user_deaths(idg_deaths[id]);
}

public 
user_killed_POST_event(attackervictim){
   
//if player killed, y force the scoring to my custom score
   
set_user_frags(attackerg_frags[attacker]);
   
set_user_deaths(victimg_deaths[victim]);

__________________

Last edited by Neeeeeeeeeel.-; 05-03-2016 at 13:49.
Neeeeeeeeeel.- is offline
Send a message via Skype™ to Neeeeeeeeeel.-
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 05-03-2016 , 14:05   Re: how to block TeamScore calculate ?
Reply With Quote #7

i mean this !

PHP Code:
get_user_msgid("ScoreInfo"
i want set score 0 for event killing and deaths
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
siriusmd99
Veteran Member
Join Date: Oct 2013
Location: Republic of Moldova
Old 05-03-2016 , 16:27   Re: how to block TeamScore calculate ?
Reply With Quote #8

It's teamscore, you want to block it , always remain 0 ?
siriusmd99 is offline
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 05-03-2016 , 16:40   Re: how to block TeamScore calculate ?
Reply With Quote #9

Quote:
Originally Posted by siriusmd99 View Post
It's teamscore, you want to block it , always remain 0 ?
Yes !
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
abdobiskra
Veteran Member
Join Date: Jul 2014
Location: Algeria
Old 05-03-2016 , 17:12   Re: how to block TeamScore calculate ?
Reply With Quote #10

i found this tpc
http://aghl.ru/forum/viewtopic.php?f=39&p=26578#p26578
PHP Code:
#include <amxmodx>
#include <amxmisc>

enum
{
TEAM_NONE 0// This is NULL Team and always = 0
TEAM_BLUE,        // This is Red Team = 1
TEAM_RED,       // This is Blue Team = 2
TEAM_SPEC       // This is Spectator = 3
}

new const 
g_szHLTeams[][] =
{
"",                // Also like the first one this is NULL but this is a Sting
"blue",     // my red team name
"red",        // my blue team name
"SPECTATOR"  //this is spectator as you know .
}

new 
g_iScore[3]

public 
plugin_init() {
    
   
register_clcmd("say add""Function"// Lets make this command to run your Function that will set team scores
   
}

public Function(
id)
{
   new 
iTeam get_user_team(id)
   new 
gMsg_TeamScore
   
new g_iScore[3]
   switch(
iTeam)
   {
      case 
1iTeam TEAM_BLUE
      
case 2iTeam TEAM_RED
   
}
   
emessage_begin(MSG_BROADCASTgMsg_TeamScore get_user_msgid("TeamScore") ) // Send message 
   
ewrite_string(g_szHLTeams[id]) //Check string names for teams
   
ewrite_short(++g_iScore[iTeam]) // Rewrite Scores 
   
ewrite_short(0)                        //This is Deaths i think we dont need to set this
   
emessage_end()

but i dont know how to set score 0 for teams !
__________________
abdobiskra is offline
Send a message via Skype™ to abdobiskra
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 18:40.


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