Jump to content

aymeness81

Members
  • Content Count

    34
  • Joined

  • Last visited

Community Reputation

0 Neutral

About aymeness81

  • Rank
    Rat

Details

  • Gang
    CIR

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. I wanted to trigger a server event, Its about giveWeapon But I want it to be triggered like the following, For example I will add the event of giveWeapon in serverside named as "giveWeaponToPlayer" But the only problem, is that the arguments are attached to client side. the ammo is to get gui label text. so someone can make it like that? triggerServerEvent("giveWeaponToPlayer", player thePlayer, int ID, int Ammo) For example this adds "spawnvehicle" event. local vehicles = { } addEvent ( "spawnvehicle", true ) addEventHandler ( "spawnvehicle", root, function ( vehID
  2. I thought about working with tables like that, but at same time I thought it will take a lot of time.. Thanks anyway
  3. Hello, I have a problem with an arresting script, Made by TAPL, Its a public one, But, I wanted to add somethiing and it didnt work.. The script is based all , on a team ("Police") , I wanted to make the script works with Military Team, SWAT Team, and Police Team. Server Side : ------- ------- ------- ------- ------- ------- ------- ------- ------- ------- ------ ------ ------|Arrest System|------ ------ ------ ------ ------- ------- ------- ------- ------- ------- ------- ------- ------- local Display = textCreateDisplay() local Text1 = textCreateTextItem("Press H to jail the Arrest
  4. I can use like that instead of yours; for _,player in ipairs (getElementsByType("player")) do local wantedlvl = getPlayerWantedLevel(player) if wantedlvl <= 0 then local row = guiGridListAddRow(playerGrid) guiGridListSetItemText(playersGrid,row,playcol,string.gsub(getPlayerName(player),"#%x%x%x%x%x%x",""),false,false) end end
  5. Hey all, I wanted to create a police computer , but I have a problem on it, I want to show in the girdlist only the wanted players, as you see I made it showing all online players; Can someone help me? Thanks Client Side : GUIEditor = { gridlist = {}, window = {}, button = {}, label = {} } policeGUI = guiCreateWindow(186, 177, 532, 344, "Job Tools", false) guiWindowSetSizable(policeGUI, false) guiSetVisible(policeGUI, false) playersGrid = guiCreateGridList(18, 62, 504, 225, false, policeGUI) guiGridListAddColumn(pla
  6. Try this. local men = { [ 0 ] = true, [ 7 ] = true, [ 14 ] = true, [ 15 ] = true, [ 16 ] = true, [ 17 ] = true, [ 18 ] = true, [ 19 ] = true, [ 20 ] = true, [ 21 ] = true, [ 22 ] = true, [ 23 ] = true, [ 24 ] = true, [ 25 ] = true, [ 26 ] = true, [ 27 ] = true, [ 28 ] = true, [ 29 ] = true, [ 30 ] = true, [ 32 ] = true, [ 33 ] = true, [ 34 ] = true, [ 35 ] = true, [ 36 ] = tru
  7. no let the timer, now go to the end of the script and then add the event handler.
  8. and maybe you may add the event handler "onElementModelChange" try it .
  9. maybe you may set timer for function checkskin. and set the timer for 1000 like every 1 second it refresh. try it.
  10. No one of those codes work.. Thanks anyway
  11. I tried this but dont works.. function createbTeam() bTeam = createTeam("Bodyguard", 255, 255, 255) end addEventHandler ("onResourceStart", resourceRoot, createbTeam) function payday() local playersb = getPlayersInTeam(bTeam) mon = math.random ( 10000, 25000 ) setTimer( givePlayerMoney, 1200000, 300, playersb, mon ) setTimer( outputChatBox, 1200000, 300, "Here is your payement.You can continue protecting to earn more. You got $ "..mon, playersb, 255, 255, 0 ) end
  12. Hi , I have made this script, its a Bodyguard job. But I need help, I want it gives money only for players that are in Bodyguards team. Thanks for advance Server SIide: function createbTeam() bTeam = createTeam("Bodyguard", 255, 255, 255) uTeam = createTeam("Unemployed", 255, 255, 0) end addEventHandler ("onResourceStart", resourceRoot, createbTeam) function beginjob ( localPlayer ) setPlayerTeam ( source, bTeam ) setElementData (source, "Occupation", "Bodyguard", true) giveWeapon (source, 31, 5000) setElementModel ( source, 166 ) setPlayerNamet
  13. You need to be logged in to get yourself in an ACL Group...
  14. This one , you must type the command /adminskin and you may choose your skin id then if the plaayer is aclgroup "Admin" then he will be given this skin, good luck function lol ( player, command ) if ( not isObjectInACLGroup( "user."..getAccountName( getPlayerAccount( player ) ), aclGetGroup( "Admin" ) ) ) then return end setElementModel(player, your_skin_id) outputChatBox("here is your admin skin", player, 133, 133, 133) end addCommandHandler ( "adminskin", lol )
×
×
  • Create New...