Samking

Members
  • Content count

    44
  • Joined

  • Last visited

Community Reputation

1 Neutral

About Samking

  • Rank
    Rat

Recent Profile Visitors

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

  1. Samking

    check this code

    GUIEditor.button[15] = guiCreateButton(203, 273, 128, 59, "Fly car", false, GUIEditor.window[1]) guiSetFont(GUIEditor.button[15], "default-bold-small") guiSetProperty(GUIEditor.button[15], "NormalTextColour", "FF0C6DF2")
  2. Samking

    check this code

    Whole Client side?
  3. Samking

    check this code

    It's not Working Plz can u make one for me?
  4. Samking

    check this code

    function fly() if isPedInVehicle(localPlayer) == false then outputChatBox("You can only use FLY car mode when in Vehicle", 255, 0, 0, true) end if isPedInVehicle(localPlayer) == true then if source == GUIEditor.button[15] then setWorldSpecialPropertyEnabled("aircars", true) outputChatBox("Fly Mode is Disabled ", 255,215,0, true) end end end addEventHandler("onClientGUIClick", GUIEditor.button[15], fly, false) Bad Argument @AddEventHsndler Except Element Argument 2 got nil plz fix
  5. Samking

    check this code

    😂
  6. Samking

    check this code

    no
  7. Samking

    check this code

    warning BadArgument @getPlayerAccount [Excepted] Element at argument 1 got nill warning BadArgument @getAccountName [Excepted account at argument 1 got boolean]
  8. Samking

    check this code

    yup
  9. Samking

    check this code

    Now this only give output Wrong Account And it's not working
  10. Samking

    check this code

    function givevip (playerSource, commandName, accountName) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then if accountName then aclGroupAddObject (aclGetGroup("VIP"), "user."..accountName) outputChatBox ("Account '"..accountName.."' add to VIPs successfully!", playerSource) else outputChatBox ("Wrong Account ", playerSource) end end end addCommandHandler ("addvip", givevip) function remvip (playerSource, commandName, accountName) local accName = getAccountName ( getPlayerAccount ( playerSource ) ) if isObjectInACLGroup ("user."..accName, aclGetGroup ( "Admin" ) ) then if accountName then aclGroupRemoveObject (aclGetGroup("VIP"), "user."..accountName) outputChatBox ("Account '"..accountName.."' Remove from VIPs", playerSource) else outputChatBox ("Wrong Account ", playerSource) end end end addCommandHandler ("delvip", remvip) The problem is When I type /addvip accname This only give output Account samking add to VIPs Successfully but not add to VIP acl group Please help
  11. Samking

    Help radar Area for acl group

    Error Excepted Near 'else
  12. Samking

    Help radar Area for acl group

    x, y, size = -2095.97632, -280.48669, 120 local greenzone = createColRectangle ( -2095.97632, -280.48669,85, 200) local greenzonemaparea = createRadarArea (-2095.97632, -280.48669,85, 200, 255,215,0, 120) function greenzoneEnter ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Entered The VIP Vehicle recover Area", thePlayer, 0, 255, 0 ) toggleControl ( thePlayer, "fire", false ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) setPedWeaponSlot ( thePlayer, 0 ) toggleControl ( thePlayer, "aim_weapon", false ) toggleControl ( thePlayer, "vehicle_fire", false ) toggleControl ( thePlayer, "vehicle_secondary_fire", false ) end addEventHandler ( "onColShapeHit", greenzone, greenzoneEnter ) function greenzoneExit ( thePlayer, matchingDimension ) if getElementType( thePlayer ) ~= "player" then return end outputChatBox ( "* You Left The VIP Vehicle recover Area", thePlayer, 0, 255, 0 ) toggleControl ( thePlayer, "fire", true ) toggleControl ( thePlayer, "next_weapon", true ) toggleControl ( thePlayer, "previous_weapon", true ) toggleControl ( thePlayer, "aim_weapon", true ) toggleControl ( thePlayer, "vehicle_fire", true ) toggleControl ( thePlayer, "vehicle_secondary_fire", true ) end addEventHandler ( "onColShapeLeave", greenzone, greenzoneExit ) How I can make this Area That Only ACL group "VIP" can enter?
  13. Samking

    commands time

    I am newbie please can you make on as an example
  14. Samking

    commands time

    Not working
  15. Samking

    commands time

    How I can set the time to command for example if I type /givemecash command I will not able to use this command again before 30 mins. How I can do this?