Raised This Month: $ Target: $400
 0% 

Level Up/Down through other plugin


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Grinf4ce
Senior Member
Join Date: May 2006
Old 06-08-2008 , 08:30   Level Up/Down through other plugin
Reply With Quote #1

Hello!
Is there anyway to levelup someone throught a other plugin? Like an API

I create a funmenu for my server, where you can buy funstuff and maybe GG-levels. How i can do this?

My Version: 1.17b

Greets, Grinf4ce
__________________
Grinf4ce is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 06-08-2008 , 17:51   Re: Level Up/Down through other plugin
Reply With Quote #2

The amx_gungame_level command, added in 1.16:

Quote:
Added a new command amx_gungame_level <target> <level>, which changes a player's level. Target can be a player name, *, @ALL, @TERRORIST, or @CT. If level is prepended with a plus or minus symbol, the level change is relative. Otherwise, the level change is absolute. Requires ADMIN_BAN (or flag "d") access to use. Example:

amx_gungame_level Avalanche 20 - sets Avalanche's level to 20
amx_gungame_level @CT +5 - gives all CT's 5 extra levels
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Grinf4ce
Senior Member
Join Date: May 2006
Old 06-09-2008 , 00:39   Re: Level Up/Down through other plugin
Reply With Quote #3

Hi XxAvalanchexX!
Thanks for your help.

How i can call this command with ADMIN_BAN in another plugin?
Please help me

- regards grinf4ce
__________________
Grinf4ce is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 06-09-2008 , 01:45   Re: Level Up/Down through other plugin
Reply With Quote #4

Code:
server_cmd("amx_gungame_level whatever");
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Grinf4ce
Senior Member
Join Date: May 2006
Old 06-09-2008 , 09:41   Re: Level Up/Down through other plugin
Reply With Quote #5

Thank You XxAvalanchexX² !

My last question:
How can i "read" on which level the player (id) is? Should I read out his weapon or use an other function?

Sorry my bad english

- regards, Grinf4ce
__________________
Grinf4ce is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 06-09-2008 , 13:54   Re: Level Up/Down through other plugin
Reply With Quote #6

Hmm, I can't think of any way to get a player's level from outside of GunGame. What do you need it for?
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Grinf4ce
Senior Member
Join Date: May 2006
Old 06-09-2008 , 15:38   Re: Level Up/Down through other plugin
Reply With Quote #7

I need it to check if the player who want buy a gungame level not on "grenade" or "knife"-level is..

Do you know how i can realize it?
__________________
Grinf4ce is offline
XxAvalanchexX
Veteran Member
Join Date: Oct 2004
Location: abort73.com
Old 06-09-2008 , 17:39   Re: Level Up/Down through other plugin
Reply With Quote #8

Well, you could check to see if they don't have any primary or secondary weapons. If they don't, they are probably on the knife or grenade level. But it is possible that they dropped their weapons, or they might be on the grenade level with a Glock.

I can't think of any way, sorry. I plan to do a minor release soon, mostly to fix some bugs. I may include a public function that returns a player's level, so that you could get it with callfunc.
__________________
No longer around. Thanks your support, everyone! As always:
THIS ONES FOR YOU
3000 PTS
XxAvalanchexX is offline
Grinf4ce
Senior Member
Join Date: May 2006
Old 06-11-2008 , 01:03   Re: Level Up/Down through other plugin
Reply With Quote #9

Thanks for your help!

+karma 4 you.
__________________
Grinf4ce 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 06:01.


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