Jump to content

مشكله


POWR

Recommended Posts

سلام علكيم كيفكم

عندي مشكله

وهي ابي احط اسم التيم حق لاعب لما يتشري

كود

server

addEvent("Minigun",true)  
addEventHandler("Minigun",root,  
function() 
local PlayerMoney = getPlayerMoney(source) 
 if ( PlayerMoney >= 4000) then 
    takePlayerMoney(source,4000)  
    giveWeapon ( source ,  38,999 )   
    setPedWeaponSlot(source, getSlotFromWeapon(38))  
     local name = getPlayerName(source) 
        outputChatBox ( "" .. name .. " #ffff00 Has Bought  #00ffff[Minigun]", getRootElement(), 255, 0, 0, true )    
    else 
        outputChatBox("#00cc00 You don't have #ff0000 $4000 #00cc00 to buy #ffff00[Minigun]", source, 255, 0, 0, true) 
end  
end 
)  
      
  

ابيه يجي مثل كذا

outputChatBox ( "" .. name .. " اهنآ اسم التيم #ffff00 Has Bought  #00ffff[Minigun]", getRootElement(), 255, 0, 0, true )   

Link to comment
  • Other Languages Moderators
local playerTeam = getTeamName(getPlayerTeam(source)) or "N/A" 
outputChatBox(name.. " | "..playerTeam.." #ffff00Has Bought  #00ffff[Minigun]", root, 255, 0, 0, true)   

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