AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Snippets and Tutorials (https://forums.alliedmods.net/forumdisplay.php?f=112)
-   -   [Stamm] How to make features for the Stamm Plugin (https://forums.alliedmods.net/showthread.php?t=195775)

dordnung 09-11-2012 10:24

[Stamm] How to make features for the Stamm Plugin
 
There is finally a really detailed Wiki for how to use the Stamm API, see here:

https://github.com/popoklopsi/Stamm/wiki#for-developers

If you have questions or problems, feel free to ask :)

dordnung 09-13-2012 19:58

Re: [Stamm] Make features for my VIP Plugin
 
*reserved*

TheHardstyleBro 10-09-2012 10:32

Re: [Stamm] Make features for my VIP Plugin
 
Question

Im trying with custom chat colors this out

PHP Code:

        if(IsClientVip(client1false))
        {
            
CCC_SetTag(client"[Bronze-VIP] ");
            
CCC_SetTagColor(client"8C7853");
        }
        else if(
IsClientVip(client2false))
        {
            
CCC_SetTag(client"[Silver-VIP] ");
            
CCC_SetTagColor(client"E6E8FA");
        } 

Will this work?
Cause when I just use "Bronze" at type it will give me error in the compiler

dordnung 10-09-2012 10:47

Re: [Stamm] Make features for my VIP Plugin
 
What is CCC?

ecca 10-09-2012 10:58

Re: [Stamm] Make features for my VIP Plugin
 
Custom chat colors :P

dordnung 10-09-2012 11:06

Re: [Stamm] Make features for my VIP Plugin
 
Yes, this should work fine^^

Yes you have to use numbers^^, maybe i will implement a new function, also for names (;

1 -> first level (default: Bronze)
2 -> Second level

and so on ^^

dordnung 10-09-2012 15:25

Re: [Stamm] Make features for my VIP Plugin
 
UPDATED for Stamm 2.03!
  • Changed return type of GetStammGame() and GetStammType()
  • Added canChange to function AddFeature
  • Added MAX_STAMM_FEATURES and MAX_STAMM_LEVELS
  • Added GetStammLevelNumber(String:name[]) to get the number of a named level

ahodania 10-23-2012 06:53

Re: [Stamm] Make features for my VIP Plugin
 
I see other servers with the !store function where they can buy hats, playertrails,skins, etc with the credits they get. How would I implement something like that? I'm really bad at programming lol

dordnung 10-23-2012 06:56

Re: [Stamm] Make features for my VIP Plugin
 
Sure that is with the credits of stamm?

ahodania 10-23-2012 07:04

Re: [Stamm] Make features for my VIP Plugin
 
Yes my friend. Could I give you a server IP that has a good example of that?


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

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