View Single Post
zwetch
Senior Member
Join Date: Aug 2015
Location: South Africa
Old 07-05-2021 , 16:27   Re: [ANY] Super Paypal Donation
Reply With Quote #49

PHP Error, when selecting/trying to buy package.

Code:
[05-Jul-2021 20:12:59 UTC] PHP Fatal error:  Uncaught Error: Class 'Vikas5914\SteamAuth' not found in /home/zasurfco/phatboi/donate/prepare_payment.php:9
Stack trace:
#0 {main}
  thrown in /home/zasurfco/phatboi/donate/prepare_payment.php on line 9

Quote:
Originally Posted by Arkarr View Post
I explained how the rcon work :

sm_super_paypal_donation_rcon ""

Execute this RCON each time a player is eligble for admin rights!
If this rcon is less than 1 char (default), nothing will be executed. Also, you use '[STEAMID]' or '[PLAYER]' to target people and [PACKAGEID] to retrieve the package id.


sm_super_paypal_donation_rcon "sm_givevip [STEAMID] [PACKAGEID]"

Will execute something like :

sm_givevip STEAM_X:Y:ZZZZ 2

If player has bought package 2.
What I don't understand is the following..

sm_super_paypal_donation_rcon is meant auto execute a players steamid and package id right..
but What's the point of the sm_givevip? Just part of the Example? Since it's not part of the plugin.

Also how would I go by setting sm_super_paypal_donation_rcon to execute multiple different packages or does it automatically set the correct package id?
__________________
https://forums.alliedmods.net/signaturepics/sigpic262740_1.gif

Last edited by zwetch; 07-06-2021 at 02:05.
zwetch is offline