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

[onLogin] Change outfit when logging in with x groupID

zniC

o hio
Joined
Jun 2, 2007
Messages
1,482
Reaction score
1
Yo, I'm in need of a creaturescript which changes the players outfit when logging in IF the players GroupID is above 4.

like
Code:
onLogin 
blabla
ifGetPlayerAccess =< 4 then
changePlayerOutfit(cid, 266)
end or something

ok thats jsut an example of how i need it to be, but cant make it myself :l

this is my original login.lua
Code:
function onLogin(cid)
    registerCreatureEvent(cid, "PlayerDeath")
    return TRUE
end

i need it modified so it fits my needs :( someone please help.

appreciate it!
 
Dunno the proper name for changing outfit getting group, change them to your needs.
Code:
function onLogin(cid)
    registerCreatureEvent(cid, "PlayerDeath")
    if getPlayerAccess(cid) > 4 then
    doCreatureChangeOutfit(cid, 267)
    return TRUE
end
 
Back
Top