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

Achievements


Post New Thread Reply   
 
Thread Tools Display Modes
amokossi
Senior Member
Join Date: Apr 2008
Old 02-23-2012 , 08:42   Re: Achievements
Reply With Quote #131

got the output working with this code:

See here: http://www.renemoerke.de/joschi/ach_alle.php

Quote:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Unbenanntes Dokument</title>
</head>

<body>
<?php
$host = "meinDBServer";
$user = "derUser";
$pass = "meinPW";
$dbase = "DB";
$db = mysql_connect($host, $user, $pass) or die ("verbindung fehlgeschlagen");
mysql_select_db($dbase, $db) or die ("verbindung zur datenbank fehlgeschlagen");

$Waffen = array("p228",
"scout",
"hegrenade",
"xm1014",
"c4",
"mac10",
"aug",
"smokegrenade",
"elite",
"fiveseven",
"ump45",
"sg550",
"galil",
"famas",
"usp",
"glock18",
"awp",
"mp5navy",
"m249",
"m3",
"m4a1",
"tmp",
"g3sg1",
"flashbang",
"deagle",
"sg552",
"ak47",
"knife",
"p90");

$Erfolge = array("Ultimate Server Lover",
"Boom Head-Shot",
"Distance Killed",
"Distance Walked",
"OMFG that was close",
"Short Fuse",
"Boomala Boomala",
"Nothing Can Blow Up",
"God of War",
"Pistol Master",
"Rifle Master",
"Shotgun Master",
"Spray and Pray",
"Master At Arms",
"Play Around",
"Stand Alone",
"1 Hp Hero",
"Bad Friend",
"Urban Designer",
"Graffiti Is My Second Name",
"Ammo Conservation",
"Fly Away",
"Reloader",
"Camp Fire",
"Hat Trick",
"Cowboy Diplomacy",
"You've Made Your Points");


$query = "select * from Achievement";


$result = mysql_query($query,$db);




while ($row = mysql_fetch_array($result)) {
echo $row['name'];
echo '<br>';
echo $row['authid'];
echo '<br>';

$test = explode (" ", $row['data']);
$i = 1;
foreach($Waffen as $v)
{
echo $v.": ".$test [$i]." Kills<br />";
$i++;
}

$j = 0;
foreach($Erfolge as $v)
{
echo $v." - Level: ".$test [$i+$j]."<br />";
$j++;
}

}



?>
</body>
</html>
How to make a good looking table to implement the data? anyone an Idea how it should/could look?


regards
Amokossi
amokossi is offline
Send a message via ICQ to amokossi Send a message via MSN to amokossi
amokossi
Senior Member
Join Date: Apr 2008
Old 03-02-2012 , 16:21   Re: Achievements
Reply With Quote #132

Is there a documentation what the Achievments mean? For example :
COWBOY_DIPLOMACY.

Maybe multilanguage would be nice

*EDIT*

I found this in the sma:
Quote:
#endif
if( equal( szAction, "Rescued_A_Hostage" ) )
{
g_iAchLevel[ id ][ COWBOY_DIPLOMACY ]++
switch( g_iAchLevel[ id ][ COWBOY_DIPLOMACY ] )
{
case 100:
{
g_iAchLevel[ id ][ COWBOY_DIPLOMACY ]++
Print( 0, "^4[Achievement]^3 %s^1 has earned ^3'^1Cowboy Diplomacy^3'^4 achievement!", szName )
emit_sound( id, CHAN_STATIC, g_szAchievementSound, 1.0, ATTN_NORM, 0, PITCH_NORM )
}
}
Print( 0, "^1[^4AMMX^1]^3 %s^1 has^4 rescued^1 a^3 Hostage^1.", szName )// Hostage rescued
}
So cowboy diplomacy is when you rescue a hostage and completed when reached 100? ( 100, // Cowboy Diplomacy)

best regards
Amokossi

Last edited by amokossi; 03-02-2012 at 16:24.
amokossi is offline
Send a message via ICQ to amokossi Send a message via MSN to amokossi
wickedd
Veteran Member
Join Date: Nov 2009
Old 03-02-2012 , 16:31   Re: Achievements
Reply With Quote #133

Quote:
Originally Posted by amokossi View Post
Is there a documentation what the Achievments mean? For example :
COWBOY_DIPLOMACY.

best regards
Amokossi
Read the first post.
__________________
Just buy the fucking game!!!!
I hate No-Steamers and lazy ass people.
wickedd is offline
amokossi
Senior Member
Join Date: Apr 2008
Old 03-02-2012 , 17:12   Re: Achievements
Reply With Quote #134

Damn!!! Sorry! Really Sorry!
amokossi is offline
Send a message via ICQ to amokossi Send a message via MSN to amokossi
Roy333
Junior Member
Join Date: Feb 2012
Old 03-03-2012 , 13:05   Re: Achievements
Reply With Quote #135

How can I disable some of the achivements ?
Roy333 is offline
amokossi
Senior Member
Join Date: Apr 2008
Old 03-05-2012 , 02:11   Re: Achievements
Reply With Quote #136

Its all hardcoded. You will have to edit the code in the .sma and recompile it.
amokossi is offline
Send a message via ICQ to amokossi Send a message via MSN to amokossi
talha
Senior Member
Join Date: Jul 2011
Location: On Earth
Old 05-18-2012 , 15:14   Re: Achievements
Reply With Quote #137

PLz can u add these plugins in achievements

silver-player : a person becomes silver-player after spending 5000 min on server
can change map 3 times a day
and has a permanent nick which no 1 else can put

golden-player: a person becomes golden-player after spending 8000 min on server
can use admin chat
kick player
change-map 6 times a day
has permanent nick
(plz make sure that time for each could be changed if i want later)

and time for each player using their name when they type /mytime
each silver or golden player should be displayed when typed /silverplayer or /goldenplayer
talha is offline
Send a message via Yahoo to talha
HBxander
Senior Member
Join Date: Jan 2011
Location: Behind you!
Old 05-18-2012 , 19:48   Re: Achievements
Reply With Quote #138

Guys, if you think something like 'OMG THIS COULD BE AWESOME IF THIS ADDS POINTS TO MY AWESOME POINTMOD WHEN YOU ACHIEVE ACHIEVEMENTS'
Then PM me, i will send you the plugin with it attached, but i need your natives for the plugin (for adding the points/XP/money etc)
__________________
Selling:

- PointMod for Hide And Seek - $20
- Private BlockMaker with Weapon Block And More - $50
- Achievements ( FFA GamePlay ) - $25

PM Me about Private Work!
HBxander is offline
talha
Senior Member
Join Date: Jul 2011
Location: On Earth
Old 05-19-2012 , 05:01   Re: Achievements
Reply With Quote #139

CAn u PLZ edit this plugin so that this plugin can have

1) /time which would show the number of minutes u have played on the server

2) /time_top15 show top15 players by descending order of time

3) silverplayer achievements can be earned by spending more than 5000 min on server
and when any 1 type /silverplayer the people who have earned this achievements and are online should be displayed
>silver can can change map 4 times a day
>have a permanent nick which no 1 in server can use

4) goldenplayer achievements can be earned by spending more than 8000 min on server
and when any 1 type /goldenplayer the people who have earned this achievenments and are online should be displayed
>silver can can change map 6 times a day
>have a permanent nick which no 1 in server can use
>can kick anyone
>can use admin chat

5) ultimate server lover which would be awarded to the payer who gets 100 kills on daily bases
and when /serverlover typed if hes online his name should be displayed
>can change map 10 times a day
>have a permanent nick which no 1 on server can use

and plz make sure that the min required for each achievements could be easily changed

Thanks in advance .......................................... <3
talha is offline
Send a message via Yahoo to talha
couldbepurplecouldbepink
Member
Join Date: Aug 2011
Old 06-29-2012 , 13:08   Re: Achievements
Reply With Quote #140

Anyway to track data by IP instead of STEAMID?
couldbepurplecouldbepink is offline
Old 08-26-2012, 21:35
Balage74
This message has been deleted by Balage74. Reason: resolved
Old 09-02-2012, 10:20
Balage74
This message has been deleted by Balage74. Reason: resolved
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 00:14.


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