Jump to content

مساعدة صغيرة


jaberxpro

Recommended Posts

تم صنعت مود

اول مود اصنعه

لكن ابي اتأكد اذا الاكواد صحيحة او لا قبل تركيبه

Server.lua

function jaber() 
ourputChatBox ("حياكم الله في سيرفر GTA-AF") 
ourputChatBox ("منورين السيرفر") 
end 
addEventHandler ("onPlayerJoin" , getRootElement ( ),jaber) 

meta.xml

<meta> 
<script src="Server.lua" type="server" /> 
</meta> 
  

في مشكلة او لا؟ :oops:

Link to comment
تم صنعت مود

اول مود اصنعه

لكن ابي اتأكد اذا الاكواد صحيحة او لا قبل تركيبه

Server.lua

function jaber() 
ourputChatBox ("حياكم الله في سيرفر GTA-AF") 
ourputChatBox ("منورين السيرفر") 
end 
addEventHandler ("onPlayerJoin" , getRootElement ( ),jaber) 

meta.xml

<meta> 
<script src="Server.lua" type="server" /> 
</meta> 
  

اسم فنكشن إلي يرسل رسالة في الشات خطأ+ بيطلع الكلام للكل مو بس للاعب إلي دخل

: يصير كذا

function jaber() 
    outputChatBox( "حياكم الله في سيرفر GTA-AF", source ) 
    outputChatBox( "منورين السيرفر", source ) 
end 
addEventHandler( "onPlayerJoin", getRootElement(), jaber ) 

Link to comment
تم صنعت مود

اول مود اصنعه

لكن ابي اتأكد اذا الاكواد صحيحة او لا قبل تركيبه

Server.lua

function jaber() 
ourputChatBox ("حياكم الله في سيرفر GTA-AF") 
ourputChatBox ("منورين السيرفر") 
end 
addEventHandler ("onPlayerJoin" , getRootElement ( ),jaber) 

meta.xml

<meta> 
<script src="Server.lua" type="server" /> 
</meta> 
  

اسم فنكشن إلي يرسل رسالة في الشات خطأ+ بيطلع الكلام للكل مو بس للاعب إلي دخل

: يصير كذا

function jaber() 
    outputChatBox( "حياكم الله في سيرفر GTA-AF", source ) 
    outputChatBox( "منورين السيرفر", source ) 
end 
addEventHandler( "onPlayerJoin", getRootElement(), jaber ) 

شكراً لك تم التعديل+تعلم شيئ اخر :wink:

Link to comment
تم صنعت مود

اول مود اصنعه

لكن ابي اتأكد اذا الاكواد صحيحة او لا قبل تركيبه

Server.lua

function jaber() 
ourputChatBox ("حياكم الله في سيرفر GTA-AF") 
ourputChatBox ("منورين السيرفر") 
end 
addEventHandler ("onPlayerJoin" , getRootElement ( ),jaber) 

meta.xml

<meta> 
<script src="Server.lua" type="server" /> 
</meta> 
  

اسم فنكشن إلي يرسل رسالة في الشات خطأ+ بيطلع الكلام للكل مو بس للاعب إلي دخل

: يصير كذا

function jaber() 
    outputChatBox( "حياكم الله في سيرفر GTA-AF", source ) 
    outputChatBox( "منورين السيرفر", source ) 
end 
addEventHandler( "onPlayerJoin", getRootElement(), jaber ) 

شكراً لك تم التعديل+تعلم شيئ اخر :wink:

You Are Welcome .

Link to comment

اي كود الصحيح

هذا

function jaber(thePlayer) 
givePlayerMoney ( thePlayer, 1000000,source ) 
end 
addCommandHandler ( "Give", jaber ) 

أو

function jaber(thePlayer) 
givePlayerMoney ( thePlayer, 1000000 ) 
end 
addCommandHandler ( "Give", jaber ) 

شكراً لك سفاح بفضلك تعملت البرمجة :icescream:

Link to comment

function jaber(thePlayer) 
givePlayerMoney ( thePlayer, 1000000 ) 
end 
addCommandHandler ( "Give", jaber ) 

هذا ~

حيآكـ ذذ

أنت لو تدخل الويكي راح تلاحظ أرقمنتات الوظيفة وكم عندها أرقمنت وظيفة أعطاء الفلوس أرقمنتين

bool givePlayerMoney ( player thePlayer, int amount ) 

player thePlayer = اللاعب الي راح تعطيه

int amount = الفلوس الي راح تعطيه ذذ

Link to comment
function jaber(thePlayer) 
givePlayerMoney ( thePlayer, 1000000 ) 
end 
addCommandHandler ( "Give", jaber ) 

هذا ~

حيآكـ ذذ

أنت لو تدخل الويكي راح تلاحظ أرقمنتات الوظيفة وكم عندها أرقمنت وظيفة أعطاء الفلوس أرقمنتين

bool givePlayerMoney ( player thePlayer, int amount ) 

player thePlayer = اللاعب الي راح تعطيه

int amount = الفلوس الي راح تعطيه ذذ

شكراً لك على الشرح :wink:

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...