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

[THC RPG] Total HardCore RPG


Post New Thread Reply   
 
Thread Tools Display Modes
arsirc
Veteran Member
Join Date: Dec 2007
Location: Carinthia,Austria,Earth
Old 03-16-2011 , 04:02   Re: [THC RPG] Total HardCore RPG
Reply With Quote #481

anyone here who can help with threaded sql?
arsirc is offline
gamemann
Veteran Member
Join Date: Sep 2009
Location: Mullica Hill, New Jersey
Old 03-16-2011 , 20:22   Re: [THC RPG] Total HardCore RPG
Reply With Quote #482

Quote:
Originally Posted by arsirc View Post
i am working to fix this things ... i have made a frostnade upgrade for you ;)
thanks, btw i pretty much fixed all the other things for my server like regan hp i fixed on my own for the zombie escape server i own... So if you want to know how i did it just pm me ill give u the files...!

I also figured out how to give credits in the code so i made it on playerdeath whoever killed the victim gets credits!

The only thing that is left, is lag... It's not that lagging... But on player hurt it lags for some reason..... I tried fixing it but still doesn't do it I also added on to it...
Heres the player core in the core.inc thing i did for giving credits on player hurt.... Tried fixing the lag too:

playerdeathcore:
Code:
public Core_PlayerDeath(victim, attacker, const String:weapon[], bool:headshot)
{
    if(victim&&attacker&&victim!=attacker&&(GetClientTeam(victim)!=GetClientTeam(attacker)||g_CoreConfigCache[CoreConfig_freeforall]))
    {
        new xp=g_CoreConfigCache[CoreConfig_exp_kill]*GetLevel(victim);
        if(headshot)
		{
            xp+=g_CoreConfigCache[CoreConfig_exp_headshot];
            SetCredits(victim,GetCredits(victim)+10);
		}
		else
		{
			SetXP(attacker,GetXP(attacker)+xp,g_CoreConfigCache[CoreConfig_announcements]);
		}
    }
	else 
	{
		if(GetClientTeam(victim) ==2)
		{
			SetCredits(victim,GetCredits(victim)-5);
		}
		else
		{
			SetCredits(victim,GetCredits(victim)+0);
		}
	}

}
playerhurt core:
Code:
{
    if(victim&&attacker&&victim!=attacker&&(GetClientTeam(victim)!=GetClientTeam(attacker)||g_CoreConfigCache[CoreConfig_freeforall]))
    {
        if(!StrEqual(weapon,"knife",false))
           // SetXP(attacker,GetXP(attacker)+(RoundToNearest(g_CoreConfigCache[CoreConfig_exp_damage]*float(dmg_health))),false); //i dont want xp earned
		   //set credits
		   SetCredits(victim,GetCredits(victim)+1); //credits are points! Minium of credits earned!
		   
        else
            //SetXP(attacker,GetXP(attacker)+(RoundToNearest(g_CoreConfigCache[CoreConfig_exp_knifedmg]*float(dmg_health))),false);
			SetCredits(victim,GetCredits(victim)+0); //very little credits earned do to spam of credits earned.....
    }
	
	// THIS PART IS PROBABLY CAUSING THE LAG FOR MY SERVER SO I DISABLED IT.... GOOD LUCK!
}
both player death and hurt lags the player and still does but i did those following changes!
[/code]


Quote:
Originally Posted by arsirc View Post
anyone here who can help with threaded sql?
Sorry i am not good with sql sourcemod making
__________________
Software/network engineer. I often work on a neat project called The Modding Community.

Check out my GitHub here!

Last edited by gamemann; 03-16-2011 at 20:28.
gamemann is offline
Send a message via Skype™ to gamemann
arsirc
Veteran Member
Join Date: Dec 2007
Location: Carinthia,Austria,Earth
Old 03-18-2011 , 08:36   Re: [THC RPG] Total HardCore RPG
Reply With Quote #483

@gamemann
nice to hear that someone is working with me ;)
about the lags, i know what is causing it. i have some problems
with my sql routines and the xpsystem in 0.8.1 version.
i am working on the fixes for this.

please be patient, i am very busy with work and school at the moment.
the last year was very horrible and until summer i see no amendment.

i hope to get some sparetime as soon as possible to release a "stable"
version for all of you my friends ;)

Last edited by arsirc; 03-18-2011 at 08:49.
arsirc is offline
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 03-18-2011 , 20:17   Re: [THC RPG] Total HardCore RPG
Reply With Quote #484

A little question to you arsirc, what use you to edit THC RPG code? notepad or some specific "development" programs (with some fancy features )?
klausenbusk is offline
Xp3r7
SourceMod Donor
Join Date: Jul 2006
Old 03-18-2011 , 22:49   Re: [THC RPG] Total HardCore RPG
Reply With Quote #485

Notepad++ works really good for editing .sp/.txt/.cfg/.ini files and programming altogether.
__________________
Xp3r7 is offline
Send a message via MSN to Xp3r7
klausenbusk
AlliedModders Donor
Join Date: Jan 2011
Old 03-19-2011 , 05:57   Re: [THC RPG] Total HardCore RPG
Reply With Quote #486

no linux support , but i use gedit
klausenbusk is offline
arsirc
Veteran Member
Join Date: Dec 2007
Location: Carinthia,Austria,Earth
Old 03-19-2011 , 15:14   Re: [THC RPG] Total HardCore RPG
Reply With Quote #487

i am using pspad for windows. i dont edit thc-rpg with my linux machine ;)
arsirc is offline
gamemann
Veteran Member
Join Date: Sep 2009
Location: Mullica Hill, New Jersey
Old 03-19-2011 , 17:20   Re: [THC RPG] Total HardCore RPG
Reply With Quote #488

Quote:
Originally Posted by arsirc View Post
i am using pspad for windows. i dont edit thc-rpg with my linux machine ;)
did you get my email?
My email is [email protected]

I emailed the fixes to u ;)
__________________
Software/network engineer. I often work on a neat project called The Modding Community.

Check out my GitHub here!
gamemann is offline
Send a message via Skype™ to gamemann
rautamiekka
Veteran Member
Join Date: Jan 2009
Location: Finland
Old 03-20-2011 , 06:05   Re: [THC RPG] Total HardCore RPG
Reply With Quote #489

Quote:
Originally Posted by klausenbusk View Post
no linux support , but i use gedit
gedit works well enough, though Notepad++ runs under Wine at 100%.
__________________
Links to posts I received Karma from:
Big thanks to all who gave Karma
rautamiekka is offline
Send a message via ICQ to rautamiekka Send a message via AIM to rautamiekka Send a message via MSN to rautamiekka Send a message via Yahoo to rautamiekka Send a message via Skype™ to rautamiekka
arsirc
Veteran Member
Join Date: Dec 2007
Location: Carinthia,Austria,Earth
Old 03-20-2011 , 13:47   Re: [THC RPG] Total HardCore RPG
Reply With Quote #490

Quote:
Originally Posted by gamemann View Post
did you get my email?
My email is [email protected]

I emailed the fixes to u ;)
yeah, i got it ... thank you!!
arsirc 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 10:28.


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