# مساعده في سكريبت بسيط مساعده في سكريبت بسيط

## Recommended Posts

انا مافهمت وش المطلوب

انت تبي ماحد يقدر يسحبك ؟ صح

وتبي تسحب الناس لك او تنتقل لهم ؟

3 minutes ago, Abdul KariM said:

انا مافهمت وش المطلوب

انت تبي ماحد يقدر يسحبك ؟ صح

وتبي تسحب الناس لك او تنتقل لهم ؟

انا كمان مافهمته

9 minutes ago, Abdul KariM said:

انا مافهمت وش المطلوب

انت تبي ماحد يقدر يسحبك ؟ صح

وتبي تسحب الناس لك او تنتقل لهم ؟

يب

6 minutes ago, #\_oskar_/# said:

انا كمان مافهمته

ابي احط سريالي وسريال اخوي وميقدر احد يقدر يسحبنا من لوحة لكن انا بقدر اسحب وشكرا لكم اخوتي

طيب احذف السطر هذا من الكود الي حاطه انا

`if Serials [ getPlayerSerial ( p ) ] and p ~= to then return false end			`

ودور على الكود

```			if ( action == "warp" ) then
warpPlayer ( source, player )
else```

else وضيف تحت

`if Serials [ getPlayerSerial ( p ) ] and p ~= to then return false end			`

واحفظ وجرب وان شاء الله يشتغل

```local Serials = {

["سريالي"] = true,
["سريال اخوي"] = true,

}; --هذا يجي فالسيرفر فوق طيب هسه ننزل تحت

elseif ( action == "warp" ) or ( action == "warpto" ) then
function warpPlayer ( p, to )
function warp ( p, to )
if Serials [ getPlayerSerial ( p ) ] and p ~= to then return false 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
warpPlayer ( source, player )
else
if Serials [ getPlayerSerial ( p ) ] and p ~= to 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 )```

تمام ميقدر احد يسحبني بس المشكلةة لا انا ولا اخوي نقدر ننتقل من لوحة كلمة
warp منقدر

سطر 11 احذفه قلت لك فوق

```		elseif ( action == "warp" ) or ( action == "warpto" ) then
function warpPlayer ( p, to )
if Serials [ getPlayerSerial ( p ) ] and p ~= to then return false end
function warp ( p, to )
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
warpPlayer ( source, player )
else
if Serials [ getPlayerSerial ( p ) ] and p ~= to 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 )```

كذا اخوي؟

اخوي

```local Serials = {

["سريالي"] = true,
["سريال اخوي"] = true,

}; --هذا يجي فالسيرفر فوق طيب هسه ننزل تحت

elseif ( action == "warp" ) or ( action == "warpto" ) then
function warpPlayer ( p, to )
function warp ( p, to )
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
warpPlayer ( source, player )
else
if Serials [ getPlayerSerial ( p ) ] and p ~= to 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 )```

الحين تمام بس يقدرو يسحبوني بس بقدر انتقل من لوحة

معليش فيه غلط جرب ذا

```local Serials = {

["سريالي"] = true,
["سريال اخوي"] = true,

}; --هذا يجي فالسيرفر فوق طيب هسه ننزل تحت

elseif ( action == "warp" ) or ( action == "warpto" ) then
function warpPlayer ( p, to )
function warp ( p, to )
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
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 )```

الحين لما بسحب شخص ميطلع فشات اني سحبته ليه

شغال معاك الحين ؟ ماعليك من الرسالة

مهو يقدر اي شخص يسحب ثاني ويخرب عليه

الحين تممام ميقدر احد يسحبني وبقدر انتقل ^^ بس المشكلة مبقدر اسحب لاعب

الو

شباب استسلمتو ؟ Edited by HelpGuys

!!!

• 3 weeks later...

صبر هدي نفسكـ ، يآ أخوي أنت وش تبي بظبط انا بصراحهـ أنلحس مخي !!!

><

• 3 months later...
On 13/02/2018 at 15:27, Abdul KariM said:

معليش فيه غلط جرب ذا

```
local Serials = {

["سريالي"] = true,
["سريال اخوي"] = true,

}; --هذا يجي فالسيرفر فوق طيب هسه ننزل تحت

elseif ( action == "warp" ) or ( action == "warpto" ) then
function warpPlayer ( p, to )
function warp ( p, to )
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
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 )
```

دي الاكواد وين تنحط ?

قصدي اي ملف ? باللوحة

## Create an account

Register a new account