Page 1 of 1

Setting / getting players weapon clip

Posted: Sat Sep 27, 2014 9:22 am
by 8guawong
how would i do this in SP?

Syntax: Select all

playerlib.getPlayer(userid).clip.secondary = 1000

Posted: Sat Sep 27, 2014 10:47 am
by L'In20Cible
[PYTHON]player = PlayerEntity(player_index)
player.set_secondary_clip(1000)[/PYTHON]

Posted: Sat Sep 27, 2014 11:34 am
by 8guawong
L'In20Cible wrote:

Syntax: Select all

player = PlayerEntity(player_index)
player.set_secondary_clip(1000)


awesome, thanks!