I want to give players items at start but the code seems to be wrong.
Code:
function onLogin(cid)
if getPlayerVocation(cid) == 5 then
doPlayerAddItem(cid, 2261, 20) -- destroy
doPlayerAddItem(cid, 2273, 80) -- uh
doPlayerAddItem(cid, 2305, 20) -- ff...