Jump to content

[HELP] Please last


1LoL1

Recommended Posts

You can use this :
function killz ( source ) 
    killPed ( source, source ) 
end 
addCommandHandler ( "kill",killz ) 

Sorry i didn't see Tomas post

And this?

function killz(source) 
    killPed(source,source) 
    local accountName = getAccountName(getPlayerAccount(source)) 
   if(accountName) then 
        if(isObjectInACLGroup("user."..accountName, aclGetGroup("VIP"))) then 
   else 
       outputChatBox("You dont have VIP !", source, 255, 0, 0); 
 end 
 end 
 end 
 addCommandHandler("kill", killz) 

XXXRE.png

Link to comment

What are you trying to do , you mean Only VIP player can use Kill command , if yes

function killz(source) 
    local acc = getPlayerAccount (source) 
    local accountName = getAccountName(acc) 
   if(accountName) then 
        if(isObjectInACLGroup("user."..accountName, aclGetGroup("VIP"))) then 
           killPed(source,source) 
       else 
          outputChatBox("You are not Vip you can't use this command", source, 255, 0, 0); 
       end 
     end 
 end 
 addCommandHandler("kill", killz) 

Link to comment
What are you trying to do , you mean Only VIP player can use Kill command , if yes
function killz(source) 
    local acc = getPlayerAccount (source) 
    local accountName = getAccountName(acc) 
   if(accountName) then 
        if(isObjectInACLGroup("user."..accountName, aclGetGroup("VIP"))) then 
           killPed(source,source) 
       else 
          outputChatBox("You are not Vip you can't use this command", source, 255, 0, 0); 
       end 
     end 
 end 
 addCommandHandler("kill", killz) 

yes but first warn when i dont have VIP and

error:

BUG0072.png

BUG007.png

Link to comment

-- Server side

function killz(player) 
if not isElement (player) then return end 
    local acc =  getPlayerAccount(player) 
    local accountName = getAccountName(acc) 
   if(accountName) then 
        if(isObjectInACLGroup("user."..accountName, aclGetGroup("VIP"))) then 
           killPed(player,player) 
       else 
          outputChatBox("You are not Vip you can't use this command", player, 255, 0, 0) 
       end 
     end 
 end 
 addCommandHandler("kill", killz) 
  

Link to comment
-- Server side
function killz(player) 
if not isElement (player) then return end 
    local acc =  getPlayerAccount(player) 
    local accountName = getAccountName(acc) 
   if(accountName) then 
        if(isObjectInACLGroup("user."..accountName, aclGetGroup("VIP"))) then 
           killPed(player,player) 
       else 
          outputChatBox("You are not Vip you can't use this command", player, 255, 0, 0) 
       end 
     end 
 end 
 addCommandHandler("kill", killz) 
  

Thank You Very Very much.. really thanks.

Link to comment

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