Quote:
Originally posted by Vinvect
how do i only enable a certian weapon? just like engima's bomber game, u can only use a certain weapon. how do i do this?:o
|
NPC Code:
if (playerenters) {
timereverywhere;
disableweapons;
timeout = 0.05;
}
if (timeout) {
if (strequals(#w,weapon name goes here) && keydown(4) && playerfreezetime<=0 && !possible other stuff that should not allow the player to use his weapons)
callweapon selectedweapon,weaponfired;
timeout = 0.05;
}
If it's for a p2p server with NPC server, don't put timereverywhere in there, but put //#CLIENTSIDE above the first line.