Jump to content

Spawn تصحيح كود


Recommended Posts

وين الخطأ فالكود ؟

addEvent("spawnHim1",true) 
  
addEventHandler("spawnHim1",root, 
  
function() 
  
setPlayerTeam ( source, POLICE ) 
outputChatBox("انت الان في فريق الشرطةة", source, 255, 0, 0, true) 
spawnPlayer (source, 1579.2481689453, math.random(-1637.4063720703,-1635.4063720703), 13.561396598816, 124) 
setElementModel ( source, 285 ) 
giveWeapon ( source ,  30,1000 ) 
giveWeapon ( source ,  25,1000 ) 
giveWeapon ( source ,  27,1000 ) 
giveWeapon ( source ,  43,1100 ) 
setCameraTarget(source, source) 
end 
) 

edit:

server هذا الكود في ملف :roll:

Edited by Guest
Link to comment

addEvent("spawnHim1",true) 
addEventHandler("spawnHim1",root, 
  
function( ) 
    outputChatBox("انت الان في فريق الشرطةة", source, 255, 0, 0, true) 
    setCameraTarget(source, source) 
    spawnPlayer (source, 1579.2481689453, math.random(-1637.4063720703,-1635.4063720703), 13.561396598816,90,285,0,0,getTeamFromName("Team Name")) 
    giveWeapon ( source ,  30,1000 ) 
    giveWeapon ( source ,  25,1000 ) 
    giveWeapon ( source ,  27,1000 ) 
    giveWeapon ( source ,  43,1100 ) 
end 
) 

لم يتم التجربة .. بدل

Team Name = اسم التيم اللي تبية للاعب و للمعلومية العالم خليتة 0 تقدر تغيرة !

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