You'll have to store the latest record somewhere, to check if the new player amount is higher to the stored one.
You could use account data:
setAccountData
And:
getAccount
To get the "Console" account and use it to store the record.
Then you must check when a new player joins, if the stored record is lower to new:
getAccountData
getPlayerCount
onPlayerJoin
There's a public resource which let's you "change" the vehicle names, only when you enter on them anyway.
But never heard of two different vehicles using the same model.
local radioFile = xmlLoadFile ( "radio.xml" )
if ( radioFile ) then
for _, path in ipairs ( xmlNodeGetChildren ( radioFile ) ) do
local name = xmlNodeGetName ( path ):gsub ( "NAAM_", "" )
outputChatBox ( name )
end
end
That should do it if I'm right.
1: Los zombis no tienen nivel.
2: 'ped' no esta definido en ninguna parte.
3: 'source' de onZombieWasted puede que sea el zombi, pero no el que lo mato.