Jump to content

مساعدة -_-


Recommended Posts

سلام عليكم اكتشفت السيرفر ان فريق

الكريمنال ميقدروش يقتلوة بعض

ان اليتمات كلها  معمول لها

تيم فريندلى فاير

فامش عارف ازاى اشيل احدد ان تيم الكريمنال يقدرزو يقتلوة بعض

اخلى اى اتنين فى تيم الكريمنال يقدروة يقتلوة بعض لان التيمات كلها معمول ليها تيم  فريندلى فاير

انا المساعدة عايزة ضرورى لانى فاتح  السييرفر  واتنين بيلعبوة قالولى منقدرش نقتل بعض

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

Quote


Teams = {
	{ 'Grove Street' , 0, 128 , 0 , 'True' },
	{ 'Ballas' , 128, 0, 128 , 'True' },
	{ 'Vagos' , 255, 200, 0 , 'True' },
	{ 'Aztecas' , 0, 128, 255 , 'True' },
	{ 'Doctor' , 24, 198, 238 , 'True' },
	{ 'Police', 0, 0, 255 , 'True' },
	{ 'Criminal' , 255, 0, 0 , 'False' }
}
	
function OutPut ( aElement_ , aText_ )
	exports['guimessages']:outputServer( aElement_, aText_ )
end

executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS aAccountss___ ( AccountName , AccountPassword , Serial , Year , Month , Day )' )
executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS SaveMoney ( Accont, Money )' )

addEventHandler( 'onPlayerQuit', root,
function( ) 
	local Account = getPlayerAccount( source )
	if ( Account and isGuestAccount( Account ) ) then
		local SQL = executeSQLQuery( 'SELECT * FROM SaveMoney WHERE Accont = ? ', getAccountName( Account ) ) 
		if ( SQL ~= -1 ) then
			executeSQLQuery( 'UPDATE SaveMoney SET Money = ? WHERE Accont = ? ', getElementData( source, 'Money' ), getAccountName( Account ) ) 
		else
			executeSQLQuery ( 'INSERT INTO SaveMoney VALUES ( ? , ? )', getAccountName( Account ), getElementData( source, 'Money' ) )
		end
	end
end )


for aTeams in ipairs ( Teams ) do 
	aTeam_ = createTeam ( Teams[aTeams][1] , Teams[aTeams][2] , Teams[aTeams][3], Teams[aTeams][4] )
	if ( Teams[aTeams][5] == 'True' ) then setTeamFriendlyFire ( aTeam_ , false ) end
end

 

 

Edited by ايهاب
Link to comment

Teams = {
	{ 'Grove Street' , 0, 128 , 0 , 'True' },
	{ 'Ballas' , 128, 0, 128 , 'True' },
	{ 'Vagos' , 255, 200, 0 , 'True' },
	{ 'Aztecas' , 0, 128, 255 , 'True' },
	{ 'Doctor' , 24, 198, 238 , 'True' },
	{ 'Police', 0, 0, 255 , 'True' },
	{ 'Criminal' , 255, 0, 0 , 'False' }
}
	
function OutPut ( aElement_ , aText_ )
	exports['guimessages']:outputServer( aElement_, aText_ )
end

executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS aAccountss___ ( AccountName , AccountPassword , Serial , Year , Month , Day )' )
executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS SaveMoney ( Accont, Money )' )

addEventHandler( 'onPlayerQuit', root,
function( ) 
	local Account = getPlayerAccount( source )
	if ( Account and isGuestAccount( Account ) ) then
		local SQL = executeSQLQuery( 'SELECT * FROM SaveMoney WHERE Accont = ? ', getAccountName( Account ) ) 
		if ( SQL ~= -1 ) then
			executeSQLQuery( 'UPDATE SaveMoney SET Money = ? WHERE Accont = ? ', getElementData( source, 'Money' ), getAccountName( Account ) ) 
		else
			executeSQLQuery ( 'INSERT INTO SaveMoney VALUES ( ? , ? )', getAccountName( Account ), getElementData( source, 'Money' ) )
		end
	end
end )

addEventHandler("onPlayerSpawn", root,
function()
    	local CriminalTeam = getTeamFromName("Criminal")
		if (CriminalTeam) then
				setTeamFriendlyFire(CriminalTeam, true)
		end
end)

for aTeams in ipairs ( Teams ) do 
	aTeam_ = createTeam ( Teams[aTeams][1] , Teams[aTeams][2] , Teams[aTeams][3], Teams[aTeams][4] )
	if ( Teams[aTeams][5] == 'True' ) then setTeamFriendlyFire ( aTeam_ , false ) end
end

 

  • Like 1
Link to comment
On 07/09/2020 at 08:43, 1BenZemaaa_) said:

Teams = {
	{ 'Grove Street' , 0, 128 , 0 , 'True' },
	{ 'Ballas' , 128, 0, 128 , 'True' },
	{ 'Vagos' , 255, 200, 0 , 'True' },
	{ 'Aztecas' , 0, 128, 255 , 'True' },
	{ 'Doctor' , 24, 198, 238 , 'True' },
	{ 'Police', 0, 0, 255 , 'True' },
	{ 'Criminal' , 255, 0, 0 , 'False' }
}
	
function OutPut ( aElement_ , aText_ )
	exports['guimessages']:outputServer( aElement_, aText_ )
end

executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS aAccountss___ ( AccountName , AccountPassword , Serial , Year , Month , Day )' )
executeSQLQuery ( 'CREATE TABLE IF NOT EXISTS SaveMoney ( Accont, Money )' )

addEventHandler( 'onPlayerQuit', root,
function( ) 
	local Account = getPlayerAccount( source )
	if ( Account and isGuestAccount( Account ) ) then
		local SQL = executeSQLQuery( 'SELECT * FROM SaveMoney WHERE Accont = ? ', getAccountName( Account ) ) 
		if ( SQL ~= -1 ) then
			executeSQLQuery( 'UPDATE SaveMoney SET Money = ? WHERE Accont = ? ', getElementData( source, 'Money' ), getAccountName( Account ) ) 
		else
			executeSQLQuery ( 'INSERT INTO SaveMoney VALUES ( ? , ? )', getAccountName( Account ), getElementData( source, 'Money' ) )
		end
	end
end )

addEventHandler("onPlayerSpawn", root,
function()
    	local CriminalTeam = getTeamFromName("Criminal")
		if (CriminalTeam) then
				setTeamFriendlyFire(CriminalTeam, true)
		end
end)

for aTeams in ipairs ( Teams ) do 
	aTeam_ = createTeam ( Teams[aTeams][1] , Teams[aTeams][2] , Teams[aTeams][3], Teams[aTeams][4] )
	if ( Teams[aTeams][5] == 'True' ) then setTeamFriendlyFire ( aTeam_ , false ) end
end

 

اتصلحت المشكلة بسبب مود عندى صديقى حلها

لكن لو رجعت تانى هستخدم الكود حقك

وتسلم ي بنزيما

  • Like 1
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...