• 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!

if itemName contains playerName then; How do I do this line propperly?

Blood BlvD Ot

Member
Joined
Jun 12, 2010
Messages
243
Reaction score
7
How would I ask the script to do check for this?

Code:
local playerName = getPlayerName(cid)
local itemName = getItemNameById(item.itemid)

if itemName contains playerName then
do..blablabla

local crateName = " " .. getPlayerName(cid) .. "'s Crate"

if itemName == crateName then
doPlayerAdd...

Does this make sence?
 
Last edited by a moderator:
Back
Top