Jump to content

Help please, thank you.


justn

Recommended Posts

Posted

Hi, im working on a voteredo script, how do i check, when a player hits the hunter, if hes the only person alive and with a hunter, then the map will restart ? and if everyone dies, the map restarts.

Thanks.

Datastore - Store data to a database quickly. (Useful for saving scripted tables)

  • MTA Team
Posted

https://wiki.multitheftauto.com/wiki/Resource:Race

The race resource has a nice event for that purpose: onPlayerPickUpRacePickup

You have to use the parameter vehicleModel to check if the new vehicle will be a hunter (== 425).

Posted

I know how to use that.. i mean, how to check, if that player is the only person is alive ? and how to see when everyone dies, so the map can restart?

Datastore - Store data to a database quickly. (Useful for saving scripted tables)

Posted

addEvent ( 'onPlayerPickUpRacePickup' , true )  
addEventHandler ( 'onPlayerPickUpRacePickup' , root,  
function ( pickupType, vehicleModel, mapInfo ) 
local alivePlayers = getAlivePlayers()  
info = mapInfo.modename 
if info == "Destruction derby" then  
if #alivePlayers == 1 and ( pickupType == 'vehiclechange' and vehicleModel == 425 ) then  
   --- do something 
    end 
  end 
end 
) 

- 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

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