-
Posts
10,056 -
Joined
-
Last visited
-
Days Won
27
Everything posted by iPrestege
-
bool setPlayerTeam ( player thePlayer, team theTeam ) كيف يجي ارقومنت ثالث ذذ ؟ انتظر ردهـ ..
-
جرب غير ذي : setPlayerTeam ( v, nil ) To : setPlayerTeam ( v, nil,nil )
-
You're spawned? For example you have 'play' Gamemode? And zombie script named as 'zombies' ?
-
function removes ( v ) if getElementType ( v ) == 'player' then local theTeam = getPlayerTeam ( v ) if theTeam then setPlayerTeam ( v, nil ) end end end addEventHandler ( "onMarkerHit",Door, removes,false )
-
function removes ( v ) if getElementType ( v ) == 'player' then local theTeam = getPlayerTeam ( v ) if theTeam then setPlayerTeam ( v, nil ) end end end addEventHandler ( "onMarkerHit", getRootElement(), removes ) تبية لكل الماركرات؟ مسوية روت آنت ^^
-
Wiki : This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be an alternative (usually more generic) way of performing what it once did. :#
-
onMarkerHit event getElementType setPlayerTeam nil
-
local a51gate1 = createObject ( 980, 1940.04175 ,2215.40015 ,10.7225, 0, 0, 0 ) local a51col = createColCircle ( 1940.04175 ,2215.40015 ,10.7225 ) function opena51gates(thePlayer) if string.find ( getPlayerName ( thePlayer ),'CZ' ) then moveObject (a51gate1, 5000, 1940.04175 ,2215.40015 ,10.7225 ) end end addCommandHandler( "open", opena51gates) function closea51gates(thePlayer) if string.find ( getPlayerName ( thePlayer ),'CZ' ) then moveObject (a51gate1, 5000, 1930.04175 ,2215.40015 ,10.7225 ) end end addCommandHandler( "close", closea51gates) open - close
-
Learn : https://forum.multitheftauto.com/viewtopic.php?f=148&t=40809
-
local a51gate1 = createObject ( 980, 1940.04175 2215.40015 10.7225, 0, 0, 0 ) local a51col = createColCircle ( 1940.04175 2215.40015 10.7225, 7 ) function opena51gates(thePlayer) if string.find ( getPlayerName ( thePlayer ),'CZ' ) then if getElementModel( thePlayer ) == 287 then moveObject (a51gate1, 5000, 1940.04175 2215.40015 10.7225 ) end end end addCommandHandler( "open", opena51gates) function closea51gates(thePlayer) if string.find ( getPlayerName ( thePlayer ),'CZ' ) then if getElementModel( thePlayer ) == 287 then moveObject (a51gate1, 5000, 1930.04175 2215.40015 10.7225 ) end end end addCommandHandler( "close", closea51gates) Commands : - open - close Server Side!
-
You can edit the freeroam using data : setElementData getElementData
-
if string.find ( getPlayerName ( thePlayer ),'CZ' ) then
-
as far as i know he mean if maybe before the player name is [CZ]-->iMr.Pres[T]ege then he is allow to moveObject OK Don't double posts -_-" : string.find getPlayerName
-
Let's say this is really an good job! Keep it up!
-
Not at all.
-
FUCK Sorry i forget something try : local theMarker = createMarker ( -2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit',theMarker, function ( hit ) if hit == localPlayer then if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then setElementPosition( hit , 2287.78320,607.99255,10.82031 ) outputChatBox ( 'SET POS DONE!' ) end end end end,false )
-
It should work .
-
Try my one and tell me it's client if doesn't work post meta file?
-
local theMarker = createMarker ( -2596.625, 579.358, 15.626, 'cylinder', 2.0, 255, 0, 0, 150 ) addEventHandler('onClientMarkerHit',theMarker, function ( hit ) if hit = localPlayer then if getPlayerTeam ( hit ) and not isPedInVehicle ( hit ) then if getTeamName ( getPlayerTeam ( hit ) ) == 'Team1' then setElementPosition( hit , 2287.78320,607.99255,10.82031 ) outputChatBox ( 'SET POS DONE!' ) end end end end,false ) Please make sure you're in team called 'Team1' Please! IT'S CLIENT SIDE.
-
No more post about this fuck problem again .
-
جرب كودي يوم يصير لة سباون يظهره ذذ
-
يجيب من بداية 0 يعني الراكب 0 ذذ الى اخر شيء الماكس الفل يعني $
-
شرآيك تجرب كذا اذا صار لة سباون يظهرهـ ذذ .. -- Server Side addEventHandler('onPlayerSpawn',root, function ( ) setPlayerNametagShowing ( source,true ) end )
