Jump to content

mouadys

Members
  • Content Count

    11
  • Joined

  • Last visited

Community Reputation

0 Neutral

About mouadys

  • Rank
    Square
  1. Hello, i made a teamkick script accessible for players in ACL group Deputy I don't get any output function usnskick (sourceplayer, command, who) local TargetPlayer = getPlayerFromName (who) local accName = getAccountName ( getPlayerAccount (sourceplayer) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Deputy" ) ) then if isPlayerInTeam ( TargetPlayer, "US_Navy_SEALs" ) then setPlayerTeam (TargetPlayer, nil) end end end addCommandHandler ("kickusns", usnskick ) Thank you
  2. Look at this , here is my code : Server function changeSkin(player, playerName, item, skin) setElementModel( player, skin ) end addEvent("changeSkin", true) addEventHandler("changeSkin", root, changeSkin) Client GUIEditor = { label = {}, edit = {}, button = {}, window = {}, combobox = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(451, 289, 327, 426, "Skin", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.combobox[1] = guiCreateComboBox(48, 322, 258, 94, "", false, GUIEditor.window[1])
  3. Hello , i made a script to spawn vehicle and set player as driver , and it only works if you are admin . But i want to destroy that vehicle with a command and i dont know how . function createVehicleForPlayer(thePlayer, command, ...) local x,y,z = getElementPosition(thePlayer) -- get the position of the player x = x + 3 local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) local vehicleName = table.concat({...}, " ") local vehID = getVehicleModelFromName ( vehicleName ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then local createdV
  4. Here is the code (its from Clientside) . triggerServerEvent ("changeSkin", localPlayer, item, skin, player, playerh) Is it correct ? Because it still not working
  5. The biggest problem is that the script isn't working , i press the button but nothing happens . And when i restart the resource , the chatbox still disabled .
  6. Thank you , the problem with chatbox is fixed , but the admin panel still show on when i press P . And @50p , i dont understand what you mean , can you explain more please ?
  7. Hello , i made a gui to change player skin but it doesn't work Client-side GUIEditor = { label = {}, edit = {}, button = {}, window = {}, combobox = {}, memo = {} } GUIEditor.window[1] = guiCreateWindow(451, 289, 327, 426, "Skin", false) guiWindowSetSizable(GUIEditor.window[1], false) GUIEditor.combobox[1] = guiCreateComboBox(48, 322, 258, 94, "", false, GUIEditor.window[1]) guiComboBoxAddItem(GUIEditor.combobox[1], "285") guiComboBoxAddItem(GUIEditor.combobox[1], "287") GUIEditor.button[1] = guiC
  8. Hello , i want to make a skin editor that changes other or your player skins that you open with a command (/skineditor) and there you find a combobox and a button The combobox contains some Skins and the button is to set your or someone skin . As i'm new in scripting , i dont know what to do , i used GUI Editor and i made this GUI but i dont know what to do next on both serverside and clienside GUIEditor = { label = {}, edit = {}, button = {}, window = {}, combobox = {}, memo = {} } addEventHandler("onClientResourceStart", resourceRoot, function()
  9. mouadys

    Create a server ?

    i do but when i start a server i dont see any RP
  10. mouadys

    Create a server ?

    Hello everybody, I wanna know how to create a RP MTA server . How to do it ? where to place the files ?
×
×
  • Create New...