Samking

Members
  • Content Count

    45
  • 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

    [Help] Stats

    GUIEditor.label[1] = guiCreateLabel(33, 40, 145, 15, "Name : "..getPlayerName(localPlayer), false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[1], "default-bold-small") guiLabelSetColor(GUIEditor.label[1], 12, 240, 60) GUIEditor.label[2] = guiCreateLabel(33, 69, 145, 15, "Money : "..getPlayerMoney (localplayer) , false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[2], "default-bold-small") guiLabelSetColor(GUIEditor.label[2], 12, 240, 60) GUIEditor.label[3] = guiCreateLabel(33, 98, 145, 15, "Health : "..getElementHealth (localPlayer), false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[3], "default-bold-small") guiLabelSetColor(GUIEditor.label[3], 12, 240, 60) GUIEditor.label[4] = guiCreateLabel(33, 123, 145, 15, "Ping :"..getPlayerPing (localPlayer), false, GUIEditor.tab[1]) guiSetFont(GUIEditor.label[4], "default-bold-small") guiLabelSetColor(GUIEditor.label[4], 12, 240, 60) When I increase my money from 0 to 100 the money was still 0 in stats and also Health, ping. When I upgrade the Script then Stats change by itself How I can do like Change stats Automatically without upgrading
  2. 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")
  3. Samking

    check this code

    Whole Client side?
  4. Samking

    check this code

    It's not Working Plz can u make one for me?
  5. 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
  6. Samking

    check this code

    😂
  7. Samking

    check this code

    no
  8. Samking

    check this code

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

    check this code

    yup
  10. Samking

    check this code

    Now this only give output Wrong Account And it's not working
  11. 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
  12. Samking

    Help radar Area for acl group

    Error Excepted Near 'else
  13. 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?
  14. Samking

    commands time

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

    commands time

    Not working