Posts: 338
Registered: 9-4-06
Location: Yorke Peninsula, Sth Aust
Member Is Offline
Mood: STILL hunting Kev!
posted on 26-4-08 at 10:51
Identifying players
This information might come in handy for some of you mappers. It's a work in progress that Amp is doing and the following is a quote from him.
If anyone finds this useful or can add to it, please head over to novamappers and
share
Quote:
Ive been doing some testing in scripting to idetify specific players.
In hopes for others to persue i will post what i have found so far.
For MED one rule is to make sure all AI in the map a sequential.
ex; 240 ai the id must be from 1 to 240 to work properly.
On a dedicated server the human players that join will receive the following ids
1st player = 241
2dn player = 242
ect ect ect........
CODE
if never then
v255 = 0
endif
PLOOP
if ssndead(player) and false(v255) then
v255 = player
text#("Player has died",v255)
endif
if chain(1) and ssnalive(v255) then
text#("Player is alive",v255)
v255 = 0
endif
END
Each time a player dies v255 will display his id
It seem to work for all types of commands. Think of the things that can be done.
If you have some scripting on this subject post your results and share.