I duno, i was bored so..
idea + bad checking variable code: Chris77
sexy code: Old Greg
What the script does is based on your GroupID it broadcasts when a Staff Memeber logs in.
idea + bad checking variable code: Chris77
sexy code: Old Greg
What the script does is based on your GroupID it broadcasts when a Staff Memeber logs in.
Code:
function onLogin(cid)
if getPlayerGroupId(cid) == 2 then
BroadcastMessage(getCreatureName(cid) .. " Has now logged in. Position: Tutor",22)
elseif getPlayerGroupId(cid) == 3 then
BroadcastMessage(getCreatureName(cid) .. " Has now logged in. Position: Sr. Tutor",22)
elseif getPlayerGroupId(cid) == 4 then
BroadcastMessage(getCreatureName(cid) .. " Has now logged in. Position: GM",22)
elseif getPlayerGroupId(cid) == 5 then
BroadcastMessage(getCreatureName(cid) .. " Has now logged in. Position: CM",22)
elseif getPlayerGroupId(cid) == 6 then
BroadcastMessage(getCreatureName(cid) .. " Has now logged in. Position: God",22)
end
end
Last edited: