* تم طرح الكود لـ شرح الكود لـآنة الرجآل تقريبا عجز عن انشائة #
-- Server Side Script ;
addCommandHandler("delete", -- نسوي الكوماند
function ( ) -- وظيفة
for _,v in ipairs ( getAccounts() ) do -- نجيب الحسابات عن طريق جدول #
removeAccount ( v ); -- نحذف جميع الحسابات
end; -- نغلق
end -- نغلق
); -- اغلاق
local Marker = createMarker (... );
function MarkerHit(player)
if ( player == localPlayer ) then
setCameraMatrix( ... )
setTimer(setCameraTarget, 1000, 1, player)
end
end
addEventHandler("onClientMarkerHit",Marker,MarkerHit);
local marker2 = createMarker ( 1569.79174, -1221.71789, 277.87799, "cylinder",5, 255, 255, 255, 170 );
function markerHit(player)
if ( player == localPlayer ) then
setElementPosition(player,1305.16662,-3803.40917,3.178618)
end
end
addEventHandler("onClientMarkerHit", marker2,markerHit)
addCommandHandler("Text",
function ( )
local Text = math.random(1,2)
if ( Text == 1 ) then return outputChatBox("* Text Found!") end -- if found the text then return to ...
outputChatBox(tostring(Text)) -- output the other text (2)
end
)