Jump to content

Possible to set something?


Recommended Posts

Posted

So,

I was wonder how to give something a name? E.G. to explain myself better,

vip = yes 
  
if vip then  
code 

If you know what i mean. How to set something to a player?

-Lloyd

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted

Do You Mean Like That?

local isAlpha = false 
addCommandHandler("Alpha", 
    function ( plr ) 
        if isAlpha then 
            setElementAlpha(plr,0) 
                isAlpha = false 
                    else 
                        isAlpha = true 
                            setElementAlpha(plr,255) 
        end 
    end 
) 
         

  

Posted

if you Mean SortCut for Names ,

like this ,

serial = getPlayerSerail(source) ..

then Yeah it's possible,

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted
Do You Mean Like That?

local isAlpha = false 
addCommandHandler("Alpha", 
    function ( plr ) 
        if isAlpha then 
            setElementAlpha(plr,0) 
                isAlpha = false 
                    else 
                        isAlpha = true 
                            setElementAlpha(plr,255) 
        end 
    end 
) 
         

Yes, like how would i set a certains players vip to true/yes?

---the players vip  
       vip = yes  

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
But how u will check if the player have a vip group or data or or or etc ..

That is what i mean.

If I were to type,

/givevip Mr.Prestige

how would i switch vip = no to vip = true? What would i do?

If you need an Intermediate scripter feel free to PM me as I will accept "almost" any job, STATUS: UNAVAILABLE

SCOTLAND, my hometown, and the Home of GTA!

Posted
local vip = yes 
local vip = no 
if vip == no then 
setElementData(.. , yes ) 
elseif vip = yes then 
setElementData(.. , no ) 

- New , Kill System

- New, GameMode Intro

- Leve / Exp System

- New nametag showing style

- New , Hud For Players

- Skin Selection from SA-MP

- Money System / Buy Weapons

- Drop Weapons

- New, Flood System

- New , Group Assign

- Gun license For Weapons

- Random Rule System For Money

Posted

You can make something like this :

addCommandHandler("givevip", 
    function ( player,cmd,playerd ) 
        local targetPlayer = getPlayerFromName(tostring(playerd)) 
        if not targetPlayer then return outputChatBox("Player Not Found") end 
        if isGuestAccount(getPlayerAccount(targetPlayer)) then return outputChatBox(" * This Player is not registred!",player,255,0,0,true); end 
        local account =  getAccountName(getPlayerAccount(targetPlayer)); 
        if not isObjectInACLGroup ("user."..account, aclGetGroup ( "VIP" ) ) then 
            aclGroupAddObject (aclGetGroup("VIP"),"user."..account); 
            outputChatBox("** You Have Been Give| "..getPlayerName(targetPlayer).." | Vip!",player,0,255,0,true); 
        else 
            aclGroupRemoveObject(aclGetGroup("VIP"),"user."..account); 
            outputChatBox("** You Have Been Remove | "..getPlayerName(targetPlayer).." | Vip!",player,255,0,0,true); 
        end 
    end 
) 

  

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...