تفضل
state = true
addCommandHandler ( "madmin" ,
function ( player )
if ( isObjectInACLGroup('user.'..getAccountName(getPlayerAccount(player)),aclGetGroup ('Console') ) ) then
if ( state == true ) then
setElementPosition ( player, 2481.50659,-1703.26233,13.52803 )
outputChatBox("تم نقلك الى مقر الادمنية !! / It was taken to the Base of the Admins !!",player,255,0,0)
state = false;
else
setElementPosition ( player, 2484.42725,-1672.45129,13.33595)
state = true;
outputChatBox("لقد خرجت من مقر الادمنية / You Now Exit For Base Admins",player,255,0,0)
end
else
outputChatBox("You Moust Be in Group Admin ! / يجب ان تكون في قروب ادمن",player,255,0,0)
end
end )