Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include <amxmodx>
- #include <ColorChat>
- #define PLUGIN "FREE VIP"
- #define VERSION "1.0"
- #define AUTHOR "Devil"
- new Forward_amxbans,
- iRet;
- public plugin_init()
- {
- register_plugin(PLUGIN, VERSION, AUTHOR);
- Forward_amxbans = CreateMultiForward("amxbans_admin_connect", ET_IGNORE, FP_CELL);
- }
- public client_connect(id)
- {
- if(is_steam(id))
- {
- set_task(10.0,"Free_VIP",id)
- }
- }
- public Free_VIP(id)
- {
- if(get_user_flags(id) & ADMIN_LEVEL_H)
- {
- return;
- }
- ColorChat(id,GREEN,"[JailBreak] ^x03Otrzymales darmowego VIP'a za posiadanie konta Steam.");
- set_user_flags(id, ADMIN_LEVEL_H);
- ExecuteForward(Forward_amxbans, iRet, id);
- }
- stock bool:is_steam(id)
- {
- new auth[65];
- get_user_authid(id,auth,64);
- if(contain(auth, "STEAM_0:0:") != -1 || contain(auth, "STEAM_0:1:") != -1)
- {
- return true;
- }
- return false;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement