The script works well, but i tried this with a help of few players, hunters variable keeps counting and adding for all the players, how can i make it individual ?
-- Script made by -ffs-AbodyRulez specially for ffs simulation servers --
local hunters = 0
function HunterCounts(pickupID, pickupType, vehicleModel)
if pickupType == "vehiclechange" and vehicleModel == 425 then
hunters = hunters + 1
if hunters == 1 then
outputChatBox(getPlayerName(source).."#FFFFFFreached Hunter#FF0000 "..hunters.." #FFFFFFtime",_,255,255,255,true)
elseif hunters > 1 then
outputChatBox(getPlayerName(source).."#FFFFFFreached Hunter#FF0000 "..hunters.." #FFFFFFtimes",_,255,255,255,true)
end
end
end
addEventHandler("onPlayerPickUpRacePickup", root, HunterCounts)
-- Script made by -ffs-AbodyRulez specially for ffs simulation servers --