Well I cant get this to set the flag with an NPC server, Ive tried it clientside and serverside, before I just had ''set flagname'' which sort of worked as NPC's didnt show when you had the flag name but it didn't appear in the players attributes and now it doesnt work at all, see if you can find any bugs or errors in it, anyway heres the code.....
NPC Code:
if (playerenters) {
timeout=0.1;
if (timeout) {
timereverywhere;
if (compusdied) {
set client.magiccave1;
}
if (compuscount==0) {
set client.magiccave1;
}
timeout = 0.1;
}
}
-Spark911 (Thankyou)