Jump to content

getElementType


Recommended Posts

2 minutes ago, ` Allawi said:

صححت لك الكود فوق ^

بعرف خوي تسلم والله مشكور ثانية بجرب اللي انت قولتلي عليه

6 minutes ago, ` Allawi said:

الخطأ

مو معرف player

في الحدث

ومتحقق إنه "Military"

هو إلي مايقدر يركب

كدة؟

addEventHandler ( "onVehicleStartEnter", getRootElement(), --This Part should be edited.
function ()
if ( getElementType () == "player" ) then
    if ( getElementType ( source ) == "vehicle" and getElementModel ( source ) == 407 ) then
        if ( getPlayerTeam ( player ) and getTeamName ( getPlayerTeam ( player ) ) == "Military" ) then
                         cancelEvent()
                     end
               end
        end
 end
 )
    

 

Link to comment
58 minutes ago, ` Allawi said:

addEventHandler ( "onVehicleStartEnter", root, 	function ( player )		if ( getElementType ( source ) == "vehicle" and getElementModel ( source ) == 407 ) then			if ( getPlayerTeam ( player ) and getTeamName ( getPlayerTeam ( player ) ) ~= "Military" ) then				cancelEvent ( )			end 		end 	end )

الخطأ

مو معرف player

في الحدث

ومتحقق إنه "Military"

هو إلي مايقدر يركب

صححت لك الكود فوق ^

..

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...