if(command[1] == “/giveadmin”) then
if(command[2] ~= 0) then
Users[GetPlayerName(source)][‘Admin’] = tonumber(command[2]);
SendClientMessage(source, "You are now admin "… tonumber(command[2]))
return
else
SendClientMessage(source, "Failed: /giveadmin [Level]")
return
end
elseif(command[1] == "/givefrak") then
if(Users[GetPlayerName(source)]['Admin'] ~= 0) then
if(command[2] ~= 0) then
Users[GetPlayerName(source)]['Fraktion'] = command[2]
Users[GetPlayerName(source)]['Leader'] = 1
SendClientMessage(source, "You are now in faction ".. command[2])
return
else
SendClientMessage(source, "Failed: /givefrak [Fraktion]")
return
end
else
SendClientMessage(source, "Failed: You are not a Admin! ")
return
end
end