PDA

View Full Version : if (online || offline)


everandom
05-25-2001, 04:30 PM
LOLZ...
i just wanna ask is there difference between scripting for offline version and onliine ver.

eg. do i still can use the

if (playerenters){
playerrupees=playerrupees+10000;
}

on the online...?

another question whats index on:

players[index].hearts(or nething)

for???

is it for online use???

sorry i never submit my npc online yet :)

everandom
05-28-2001, 04:42 PM
if i want only the player which are using it are affected i put 0 in index????

n also could u hurt a person in a deep water???

Tyhm
05-30-2001, 10:45 AM
players[0].hearts=playerhearts
you can use the shortened version.
You cannot write to players[1].hearts though, or players[1].rupees, etc. Pretty much everything other players have is read-only to you, to prevent hackers. You'd have to use the new event triggers and a system NPC to make, say, a robber NPCW.
You can hurt people in water if you use freezeplayer 0.05; hurt 1; , or so I am told.

kyle0654
05-30-2001, 11:46 AM
or you could use with...

everandom
06-01-2001, 06:50 PM
thanx man...:)