server
addCommandHandler ( "StartFreeze", function ( player )
if ( getPlayerSerial ( player ) == "حط سيريالك هنا" ) then
return
setElementFrozen ( player, false )
end
for _,v in ipairs ( getElementsByType ( "player" ) ) do
setElementFrozen ( v, true )
outputChatBox ( "* تم اعطاء الجميع فريز", v, 255, 255, 255, true )
end
end )
client
addCommandHandler ( "StopFreeze", function ( )
for _,v in ipairs ( getElementsByType ( "player" ) ) do
setElementFrozen ( v, false )
outputChatBox ( "* تم فك الفريز من الجميع", v, 255, 255, 255, true )
end
end )
كذا ؟