كتبت كل الكود ذا
function hit ( pla, dim )
if getElementType ( pla ) == "player" then
local vehicle = getPlayerOccupiedVehicle ( pla )
if vehicle or not vehicle then
local skin = getPlayerSkin ( pla )
if skin == 287 then
outputChatBox ( "Welcome, "..getClientName(pla).."!", pla, 0, 150, 0 )
else
setElementData ( pla, "inRestrictedArea", "true" )
triggerClientEvent ( pla, "destroyTrepassor", g_root, pla )
outputChatBox ( "***Restricted Area***", pla, 255, 0, 0 )
outputChatBox ( "* "..getClientName(pla).." has entered Restricted Area!", g_root, 255, 0, 0 )
end
end
end
end
addEventHandler ( "onColShapeHit", g_base_col, hit )
ومانك عارف تضيف تحققين؟
:3 لا حول