Even though I'm pretty sure you don't want this, I added the CC. Btw we can't make a "key pressed" event for "/" so I made it a chat event instead. Type "/" to get 500 lumber. Tested/working on 1.30
BTW the map is already cheated with JJCP with name activators:
Code:
if GetPlayerName(Player(zzz))=="Xirizo" then if GetPlayerName(Player(zzz))=="xirizo" then if GetPlayerName(Player(zzz))=="|c0096FF96Weed" then if GetPlayerName(Player(zzz))=="grimgrents" then if GetPlayerName(Player(zzz))=="Indyklaus" then
So if you see any of these people ingame, know that they are cheating
To add this CC, I merged the following JASS code with the map code:
Spoiler:
Code:
globals endglobals
function cc_added_act takes nothing returns nothing local player i = GetTriggerPlayer() local integer current = GetPlayerState(i, PLAYER_STATE_RESOURCE_LUMBER) call SetPlayerState(i, PLAYER_STATE_RESOURCE_LUMBER, current + 500) endfunction
function cc_added_init takes nothing returns nothing local integer i = 0 local trigger t = CreateTrigger() loop exitwhen i > 24 call TriggerRegisterPlayerChatEvent(t,Player(i),"/",true) set i = i + 1 endloop call TriggerAddAction(t, function cc_added_act) set t = null endfunction
function main takes nothing returns nothing call cc_added_init() endfunction
You do not have the required permissions to view the files attached to this post.
Users browsing this forum: Google [Bot] and 39 guests
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot post attachments in this forum