AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   how to block TeamScore calculate ? (https://forums.alliedmods.net/showthread.php?t=282282)

abdobiskra 05-03-2016 09:22

how to block TeamScore calculate ?
 
Hi !
as in the title ?
i want block calculate frag if killer PLAYERS or Dead ?
http://aghl.ru/forum/download/file.php?id=3715

siriusmd99 05-03-2016 09:30

Re: how to block TeamScore calculate ?
 
Quote:

Originally Posted by abdobiskra (Post 2416280)
Hi !
as in the title ?
i want block calculate frag if killer PLAYERS or Dead ?
http://aghl.ru/forum/download/file.php?id=3715


Can you explain better, didnt understand...
Quote:

calculate frag if killer PLAYERS or Dead

abdobiskra 05-03-2016 10:30

Re: how to block TeamScore calculate ?
 
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 05-03-2016 13:31

Re: how to block TeamScore calculate ?
 
I want to cancel calculate score in scoreboard when killing and Deaths !
i want add other system to calculate this score

gabuch2 05-03-2016 13:34

Re: how to block TeamScore calculate ?
 
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.

Neeeeeeeeeel.- 05-03-2016 13:41

Re: how to block TeamScore calculate ?
 
Quote:

Originally Posted by Shattered Heart Lynx (Post 2416341)
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]);



abdobiskra 05-03-2016 14:05

Re: how to block TeamScore calculate ?
 
i mean this !

PHP Code:

get_user_msgid("ScoreInfo"

i want set score 0 for event killing and deaths

siriusmd99 05-03-2016 16:27

Re: how to block TeamScore calculate ?
 
It's teamscore, you want to block it , always remain 0 ?

abdobiskra 05-03-2016 16:40

Re: how to block TeamScore calculate ?
 
Quote:

Originally Posted by siriusmd99 (Post 2416395)
It's teamscore, you want to block it , always remain 0 ?

Yes !

abdobiskra 05-03-2016 17:12

Re: how to block TeamScore calculate ?
 
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 !


All times are GMT -4. The time now is 18:40.

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