- Joined
- Nov 15, 2007
- Messages
- 854
- Solutions
- 10
- Reaction score
- 389
- Location
- Santiago, Chile (Australian)
I started to write this, but I am not sure of the syntax of part of it.
Not sure how promotions work in scripts
getPlayerPromotionLevel(cid)
setPlayerPromotionLevel(cid, level)
I was thinking that it would be
But I am really not sure, never dealt with setPlayerPromotionLevel(cid, level) before.
Code:
function onLogin(cid)
local freepromotion = getConfigInfo('freepromotion')
if freepromotion == 1 then
here is the line im not sure about**
end
Not sure how promotions work in scripts
getPlayerPromotionLevel(cid)
setPlayerPromotionLevel(cid, level)
I was thinking that it would be
Code:
function onLogin(cid)
local freepromotion = getConfigInfo('freepromotion')
if freepromotion == 1 then
setPlayerPromotionLevel(cid, 1)
end