Jump to content

KIll all players


Xwad

Recommended Posts

thanks. I made a script , but its not working:/

  
function killAllPlayers () 
local players = getElementsByType ( "ped" ) 
for theKey,thePlayer in ipairs(players) do 
killPed ( players, players ) 
end 
end 
addCommandHandler ( "k", killAllPlayers ) 
  

Link to comment

Why do you need it on client side?

Client Side

  
function killSuckers() 
 triggerServerEvent('onPlayerWantsToKillSuckas', localPlayer) 
end 
addCommandHandler('killSuckas', killSuckers) 
  

Server Side

  
addEvent('onPlayerWantsToKillSuckas', true) 
  
function killSuckas() 
 local suckas = getElementsByType('ped') 
 for i = 1, #suckas do 
  killPed(suckas[i], suckas[i]) 
 end 
end 
addEventHandler('onPlayerWantsToKillSuckas', root, killSuckas) 
  

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