Adiko
GetOnMyHorse
Jak zrobić skrypta żeby pierwszych 10 graczy którzy sie zalogują dostanie po 100cc?
function onLogin(cid)
if getGlobalStorageValue(2430) == 0 then
return TRUE
else
doPlayerAddItem(cid, 2160, 100)
setGlobalStorageValue(2430, -1)
end
return TRUE
end
function onLogin(cid)
if getGlobalStorageValue(2430) == 10 then
return true
end
doPlayerAddItem(cid, 2160, 100)
setGlobalStorageValue(2430, getGlobalStorageValue(2430) == -1 and 1 or getGlobalStorageValue(2430) + 1)
return true
end
function onLogin(cid)
if getGlobalStorageValue(2430) == 10 or getPlayerStorageValue(cid, 101) then
return true
end
doPlayerAddItem(cid, 2160, 100)
setPlayerStorageValue(cid, 101, 1)
setGlobalStorageValue(2430, getGlobalStorageValue(2430) == -1 and 1 or getGlobalStorageValue(2430) + 1)
return true
end
drobna poprawka...function onLogin(cid)
if getGlobalStorageValue(2430) == 10 or getPlayerStorageValue(cid, 101) > -1 then
return true
end
doPlayerAddItem(cid, 2160, 100)
setPlayerStorageValue(cid, 101, 1)
setGlobalStorageValue(2430, getGlobalStorageValue(2430) == -1 and 1 or getGlobalStorageValue(2430) + 1)
return true
end
bo jakbyś na tamtym skrypcie relognął 10x to byś dostał 1000cc a inni nic.