Help, I have tried to place a delay for the commands, but it does not help me at all, could you help me?
I don't speak English, that's why the code is in another language.
Server:
function ablanca(source)
if isElementWithinMarker(source, cablanca) then
if getElementData(source, "slicencia") == true then
if getPlayerMoney(source) >= 2000 then
takePlayerMoney(source, 2000)
giveWeapon(source, 4, 1, true)
outputChatBox("Has comprado un #EE850Ecuchillo #FFFFFFpor $2000.", source, 255, 255, 255, true)
else
outputChatBox("No tienes dinero suficiente", source, 255, 255, 255, true)
end
end
end
end
addCommandHandler("ablanca", ablanca)