Jump to content

x[طلب اصلاح]xمشكله بسيطه في ترايقر


Recommended Posts

السلام عليكم ورحمة الله وبركاته

يا اخوان يريت اي شخص يساعدني

سويت سكربت المهم فيه مشكله ما يشتغل تمام 

وما يكتبلي وش المشكله بالديبق 

Spoiler

 

client side



        wnd1 = guiCreateWindow(6, 235, 196, 288, "", false)
        guiWindowSetSizable(wnd1, false)

        grd1 = guiCreateGridList(9, 25, 177, 204, false, wnd1)
        guiGridListAddColumn(grd1, "weapon", 0.5)
        guiGridListAddColumn(grd1, "ID", 0.5)
        trnbtn = guiCreateButton(38, 242, 103, 36, "Train", false, wnd1)
        xbtn = guiCreateButton(162, 256, 24, 22, "x", false, wnd1)    
local cv = { 22, 26, 32, 28}

for _,v in ipairs (cv) do
local row = guiGridListAddRow ( grd1 )
guiGridListSetItemText ( grd1, row, 1,getWeaponNameFromID (tonumber( v )), false, false )
guiGridListSetItemText ( grd1, row, 2,tostring( v ), false, false )
end
		
		
		
function veo()
if ( source == trnbtn ) then
local wep = guiGridListGetItemText ( grd1, guiGridListGetSelectedItem ( grd1 ), 1 )
 if wep == "" then return outputChatBox("اختر السلاح",255, 0, 0,true) end
triggerServerEvent("tstt",source,tonumber(wep))
end
end
addEventHandler ("onClientGUIClick",root,veo)
 


 

 

Spoiler

 

server side


function colt ()
local wepnm = getWeaponIDFromName(wep)
setPlayerStat(source,69,999)
setWeaponProperty(wepnm, "pro", "maximum_clip_ammo",1000)
end
addEvent( "tstt", true )
addEventHandler( "tstt", root, colt )


 

 

لمني اضغط ما يصير شي

Edited by K̷i̷n̷g̷ x̷D̷ツ
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...