Quote:
Originally posted by haro41
Server: Zenkou
Account: haro41
Postition: Admin
NPC Server? True
NPC: A key that is added to the weapons when picked up and is deleted from weapons when the respective door is unlocked.
|
NPC Code:
//Key
if (playertouchsme){ // if the player touches the NPC
//add to weapons
}
if (weaponfired){ // if the player uses the weapon
say2 A key :O;
}
if (weapondelete){ // special flag to call
destroy;
}
NPC Code:
//Door
if (playertouchsme){
if (hasweapon(key)){ // if player has key
callweapon key,weapondelete; // call the weapon with flag "weapondelete"
}
}
Oh wait, this is non-npcserver...
Ah the heck. With a bit brains you could make this npc-server too,
i think, cuz i'm not really familiar with NPCserver