WarCraft: Source

 

GiveLevel

Page history last edited by freddukes@... 1 yr ago

Give Level


This command does 'what it says on the tin'; simply gives a user a specefied amount of levels.

 

The correct syntax is:

 

wcs.Command(<userid>).GiveLevel(<amount>, "[optional:reason]")

 

  • Userid - The player who you wish to give levels to
  • Amount - The amount of levels you'd wish to give to them
  • Optional: Reason - If you state a reason, then it will be shown to them in the message which is sent to them


Example:

 

def player_say(ev):

    if ev["text"] == "phr33 cr3d5 pl0x":

        player = wcs.Command(ev['userid'])

        player.GiveLevel(1,"Asking for levels")

Comments (0)

You don't have permission to comment on this page.