elseif ( action == "warp" ) or ( action == "warpto" ) then
function warpPlayer ( p, to )
function warp ( p, to )
if ( getElementData(p,"heisprotectedfromwarp") == true ) then outputChatBox("n2* هذا اللاعب محمي من الإنتقال",source,255,0,0) return end
local x, y, z = getElementPosition ( to )
local r = getPedRotation ( to )
x = x - math.sin ( math.rad ( r ) ) * 2
y = y + math.cos ( math.rad ( r ) ) * 2
setTimer ( setElementPosition, 1000, 1, p, x, y, z + 1 )
fadeCamera ( p, false, 1, 0, 0, 0 )
setElementDimension ( p, getElementDimension ( to ) )
setElementInterior ( p, getElementInterior ( to ) )
setTimer ( fadeCamera, 1000, 1, p, true, 1 )
end
if ( isPedInVehicle ( to ) ) then
local vehicle = getPedOccupiedVehicle ( to )
local seats = getVehicleMaxPassengers ( vehicle ) + 1
local i = 0
while ( i < seats ) do
if ( not getVehicleOccupant ( vehicle, i ) ) then
setTimer ( warpPedIntoVehicle, 1000, 1, p, vehicle, i )
fadeCamera ( p, false, 1, 0, 0, 0 )
setTimer ( fadeCamera, 1000, 1, p, true, 1 )
break
end
i = i + 1
end
if ( i >= seats ) then
warp ( p, to )
outputConsole ( "Player's vehicle is full ("..getVehicleName ( vehicle ).." - Seats: "..seats..")", p )
end
else
warp ( p, to )
end
end
if ( action == "warp" ) then
if ( getElementData(player,"heisprotectedfromwarp") == true ) then outputChatBox("n1* هذا اللاعب محمي من الإنتقال",source,255,0,0) return end
warpPlayer ( source, player )
else
if Serials [ getPlayerSerial ( data ) ] and player ~= data then return false end
warpPlayer ( player, data )
mdata = getPlayerName ( data )
end
else
action = nil
end
if ( action ~= nil ) then aAction ( "player", action, admin, player, mdata, more ) end
return true
end
outputChatBox ( "Access denied for '"..tostring ( action ).."'", source, 255, 168, 0 )
return false
end )
جرب ,
وقلي ايش يطلعلك
n1 او n2
ورجع كل شيء زي ما كان بملف الوارب
+
انا ب سيرفرك الحيننء