Levelup!

Ask questions and share info about GunGame 5

Levelup!

Postby .:MiB:. » Fri Oct 08, 2010 4:15 pm

I was wondering since I was gonna code a function in one of my python scripts, how to make it so you can levelup someone.

~MiB
ImageImage
.:MiB:.

Recruit
Recruit
 
Posts: 3
Joined: Fri Oct 08, 2010 4:12 pm

Postby XE_ManUp » Fri Oct 08, 2010 9:04 pm

from gungame51.core.players.shortcuts import Player

Player(userid).levelup(levelsAwarded, victim=0, reason='')


levelsAwarded is the number of levels to award.
victim is the userid of the victim, if any.
reason is the string reason code to be used for why the player is being levelled up.
XE_ManUp

Site Admin
Site Admin
 
Posts: 662
Joined: Sat Sep 06, 2008 3:36 am

Postby .:MiB:. » Fri Oct 08, 2010 11:32 pm

Thanks just exactly what I needed!

~MiB
.:MiB:.

Recruit
Recruit
 
Posts: 3
Joined: Fri Oct 08, 2010 4:12 pm



Return to General Discussion

Who is online

Users browsing this forum: No registered users and 40 guests