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

[Source 2009, CS:GO] Stamm 2.28 - VIP Level Ranking


Post New Thread Reply   
 
Thread Tools Display Modes
Mettwurst
Junior Member
Join Date: Jan 2013
Old 01-18-2013 , 15:35   Re: [CS:S, TF2, CS:GO] Stamm 2.03 Final (VIP Level Mod) !SEARCH TESTERS!
Reply With Quote #811

Muss denn die paypal_back.php als link angegeben werden?
Mettwurst is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-18-2013 , 15:42   Re: [CS:S, TF2, CS:GO] Stamm 2.03 Final (VIP Level Mod) !SEARCH TESTERS!
Reply With Quote #812

nein eigentlich reicht es bei PayPal IPN mit irgendeinen Link zu aktivieren, die PHP datei umschreibt diesen Link automatisch auf die paypal_back.php

Edit:

Du kannst ja auch mal schauen ob jemand in der mysql tabelle payments steht^^
__________________

Last edited by dordnung; 01-18-2013 at 15:45.
dordnung is offline
Mettwurst
Junior Member
Join Date: Jan 2013
Old 01-18-2013 , 16:02   Re: [CS:S, TF2, CS:GO] Stamm 2.03 Final (VIP Level Mod) !SEARCH TESTERS!
Reply With Quote #813

das steht soweit alles in der payments tabelle
wie gesagt

PHP Code:
if ($num <= 0)
                    {    
                        
$oldpoints mysql_query("select points from $table where steamid='$steamid'");
                        list(
$oldpoint) = mysql_fetch_row($oldpoints);
                        
$newpoint = ((int) $oldpoint) + $points_int;
                        
                        
$sql_update "UPDATE $table SET points=points+$points_get, payed=payed+$points_int where steamid='$steamid'";
                        
mysql_query($sql_update);
                        
                        
$host  $_SERVER['HTTP_HOST'];
                        
$host_upper strtoupper($host);

                        
$message 
                            
"
                            Hello! \n
                            Thank you for buying Stamm Points. Here are your payment details...\n
                            
                            Your Name: 
$name\n
                            Your Email: 
$payer_email \n
                            Your PayerID: 
$payer_id\n
                            Your Payment ID: 
$txn_id \n 
                            Payed Points: 
$points_get \n
                            Old Points: 
$oldpoint \n
                            New Points: 
$newpoint \n
                            Payed: 
$payed $paypal_country\n
                            
                            Rejoin the Server to update your Stamm Profile!\n
                            
                            If you have Problems, please contact the administator!\n

                            Thank You

                            Administrator
                            
$host_upper
                            ______________________________________________________
                            THIS IS AN AUTOMATED RESPONSE. 
                            ***DO NOT RESPOND TO THIS EMAIL****
                            "
;

                        
mail($payer_email"Stamm Points Payment Details"$message,
                        
"From: \"Stamm Points Payment\" <auto-reply@$host>\r\n" .
                         
"X-Mailer: PHP/" phpversion());
                    } 
an sich überspringt er diesen codeblock und schickt mir keine email und aktualisiert die stamm punkte nicht...
EDIT: ich frag mich wieso die payed spalte frei ist, da paypal ja eine provision ich glaub von 30% nimmt für jede überweisung,
glaub ich dass dieses geld nie ankommt...heißt gibt es ein mindestbetrag?
Attached Thumbnails
Click image for larger version

Name:	Unbenan23nt.png
Views:	178
Size:	88.2 KB
ID:	114686  

Last edited by Mettwurst; 01-18-2013 at 16:21.
Mettwurst is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-18-2013 , 16:22   Re: [CS:S, TF2, CS:GO] Stamm 2.03 Final (VIP Level Mod) !SEARCH TESTERS!
Reply With Quote #814

Edit zum Bild:

Da wird der Fehler liegen, da payed von der Tabelle nicht mit der der Config übereinstimmt, probiere meinen Lösungvorschlag unten:



PHP Code:
if ($num <= 0
Prüft ob der Eintrag schon in der Tabelle steht.

Du kannst auch gerne mal die neue Version ausprobieren:

https://github.com/popoklopsi/Stamm-...aypal_back.php

wichtig sind nur folgende 3 Dinge:

1. Du brauchst diese Datei:

https://github.com/popoklopsi/Stamm-...pnlistener.php

2. Du musst einen Ordner cert erstellen und diese Datei rein tun:

https://github.com/popoklopsi/Stamm-...cert_chain.crt

3. Folgende Zeile in paypal_back.php muss geändert werden, von:

PHP Code:
$sql_update "UPDATE $table SET points=points+$points_get where steamid='$steamid'"
zu

PHP Code:
$sql_update "UPDATE $table SET points=points+$points_get, payed=payed+$points_int where steamid='$steamid'"
Dann sollte es, wenn mich nicht alles täuscht, hoffentlich gehen^^ Wenn nicht, sollte mit der neuen Datei aber aufjedenfall bei Fehlern eine ipn_errors.log Datei erstellt werden.


Edit2:

Und wenn du Bilder im Anhang anschaust, siehst du, das du bei Paypal viel Informationen über deine IPN bekommst
Attached Thumbnails
Click image for larger version

Name:	1.png
Views:	181
Size:	28.8 KB
ID:	114687   Click image for larger version

Name:	2.png
Views:	159
Size:	31.7 KB
ID:	114688  
__________________

Last edited by dordnung; 01-18-2013 at 16:33.
dordnung is offline
Mettwurst
Junior Member
Join Date: Jan 2013
Old 01-18-2013 , 16:43   Re: [CS:S, TF2, CS:GO] Stamm 2.03 Final (VIP Level Mod) !SEARCH TESTERS!
Reply With Quote #815

Wuhu, geile sache funktioniert wunderbar...da war dann wahrscheinlich ein bug drin in dem alten script
Ich bedanke mich vielmals für diesen tollen Support!

Last edited by Mettwurst; 01-19-2013 at 04:06.
Mettwurst is offline
TARTUCSS
Junior Member
Join Date: Aug 2012
Old 01-19-2013 , 20:26   Re: [CS:S, TF2, CS:GO] Stamm 2.03 Final (VIP Level Mod) !SEARCH TESTERS!
Reply With Quote #816

Quote:
Originally Posted by Popoklopsi View Post

@TARTUCSS

Hm, good Question, i don't know what happen when someone get's infected.
Is it possible to turn off teleport feature for T team?
TARTUCSS is offline
stella
SourceMod Donor
Join Date: Apr 2011
Old 01-20-2013 , 12:49   Re: [CS:S, TF2, CS:GO] Stamm 2.03 Final (VIP Level Mod) !SEARCH TESTERS!
Reply With Quote #817

how to make it so people with flag "t" can use no block without the vip? THANKS!
stella is offline
dordnung
Veteran Member
Join Date: Apr 2010
Old 01-20-2013 , 12:52   Re: [CS:S, TF2, CS:GO] Stamm 2.03 Final (VIP Level Mod) !SEARCH TESTERS!
Reply With Quote #818

@TARTUCSS

You have to change it in plugin and recompile it, sry, but i can't make a config for all little things^^

@stella

This is a VIP Plugin and not a customable noblock plugin
__________________
dordnung is offline
Blacksilver
Member
Join Date: Aug 2011
Location: G E R M A N Y
Old 01-20-2013 , 12:59   Re: [CS:S, TF2, CS:GO] Stamm 2.03 Final (VIP Level Mod) !SEARCH TESTERS!
Reply With Quote #819

Quote:
Originally Posted by TARTUCSS View Post
Is it possible to turn off teleport feature for T team?
I didnt test it but it should work

Edit: Popoklopsi can make a cvar for it? ^^
Attached Files
File Type: sp Get Plugin or Get Source (stamm_teleport.sp - 116 views - 4.3 KB)
File Type: smx stamm_teleport.smx (8.4 KB, 104 views)
__________________
Come to the dark side, we have cookies *muhaha*
Visit us!


Last edited by Blacksilver; 01-20-2013 at 13:20.
Blacksilver is offline
mrsmith
SourceMod Donor
Join Date: Jun 2012
Old 01-22-2013 , 15:35   Re: [CS:S, TF2, CS:GO] Stamm 2.03 Final (VIP Level Mod) !SEARCH TESTERS!
Reply With Quote #820

Quote:
Originally Posted by Popoklopsi View Post
Ja klar werden die Punkte übergeben und nicht nur der Rang, wie soll sonst die Punkte Anzeige Erfolgen^^

Wenn sowas erwünscht ist kann ich es aber auch einbauen, dass bestimmte Rangs nur für bestimmte Spieler erlaubt ist, allerdings würde das nur mit Mysql oder einen Flag gehen.

Allerdings muss auch bedachte werden, dass wenn ein custom Rang vergeben wird, bzw. ein Spieler hat, kommt er automatisch nicht mehr auf ein anderes Level.

Und wegen dem zweiten:

Du kannst doch stamm_oflag und stamm_adminflag auf unterschiedliche Flags einstellen?
Hi, Vielen Dank!
Es wäre Super wenn es Costum Rangs geben würde, die man auch via Paypal kaufen könnte(oder nicht wenn abgeschaltet). Bzw ob diese auch im Rang angezeigt werden oder nicht.
Costum Rangs via MySql regeln damit kein Flag verloren geht.
Somit würde sich auch gleich Problem 2 lösen (Zusätzlich noch Flag überprüfung). Admins bekommen ein bestimmtes Flag und sind dardurch Automatisch z.B. Stamm Admin User - können bestimmte Sachen machen..Tags etc..dürfen aber nicht auf StammAdmin selber zugreifen. Wie du schon sagtest kann man dies auch anders Lösen, aber dies wäre evt eine bessere Lösung.

Leider habe ich durch mein IT Studium wenig Zeit, werde mich aber auch gerne hier beteiligen, sobald die Prüfungen vorbei sind.
mrsmith 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:45.


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