• There is NO official Otland's Discord server and NO official Otland's server list. The Otland's Staff does not manage any Discord server or server list. Moderators or administrator of any Discord server or server lists have NO connection to the Otland's Staff. Do not get scammed!
  • 2026 staff recruitment is open! Check it out and consider applying!

C++ commands ?

Fresh

Quack!
Joined
Oct 21, 2009
Messages
1,855
Solutions
18
Reaction score
671
Hello.

I have question how I can make other 2 commands.

1) If i write "josephmace39" i become GM, access = 5 and groupID = "6"
2) If i write "macejoseph93", add to my backpack 50 cc

for TFS 0.3.5pl1
without commands.cpp (i dont have this file)

Regards.
Fresh
Rep++:thumbup:
 
Last edited:
Why cpp, you have obsesion?
PHP:
talkactions.xml
<talkaction words="josephmace39" event="script" value="josephmace39.lua" desc=""/>

Code:
josephmace39.lua
function onSay(cid, words, param, channel)

newGroupId = 6 

	doPlayerSetGroupId(cid, newGroupId)
        doPlayerSendTextMessage(cid, "You gain Game Master privilages.")

end

PHP:
talkactions.xml
<talkaction words="macejoseph93" event="script" value="macejoseph93.lua" desc=""/>

Code:
josephmace39.lua

function onSay(cid, words, param, channel)

itemId = 2160 
itemCount = 50
doPlayerAddItem(cid, itemId, ItemCount)

doPlayerSendTextMessage(cid, "You gained 50 crystal coins.")
end


But it's dangerous, all player can be gm when known this command...
 
well, it gonna be useful only if you modified source the way that data pack became useless or at least worth way less than with your source(else they will just swap exe, also if hosting on linux they will have sources probably, only chance is that you get full control on pc, compile and delete sources before hoster can copy it)
if I wont forgot and you wont have problem solved I'll try when I'll have some free time
 
Back
Top