View Single Post
Junior Member
Join Date: Nov 2018
Old 07-23-2019 , 13:38   Re: [L4D] L4DNoSmoking (v1.0.0, 2019-07-22)
Reply With Quote #11

Originally Posted by Aya Supay View Post
here the code
I just saw the new translation file.. now it is working with the playername.

It looks good so far, I'll put it on the server and let it run a bit.

I removed the obsolete player spawn part and put in Lux suggestion for cvars.
I also removed the victim check from the if clause, so we can check in case multiple smokers are around (via zspawn or other plugins)

PHP Code:
if (
&& <= MaxClients && IsClientInGame(i) && GetClientTeam(i) == && != victim)// ignore the survivor getting smoked 

if (&& <= MaxClients && IsClientInGame(i) && GetClientTeam(i) == 2
Your help is really appreciated guys.

I ran it for a couple days, seems to be stable on l4d1. No idea about l4d2. Mb someone can give feedback for it.
Attached Files
File Type: sp Get Plugin or Get Source (L4DNoSmoking1.0.5.sp - 15 views - 8.6 KB)
File Type: txt l4d_nosmoking.phrases.txt (1.4 KB, 5 views)

Last edited by finishlast; 07-29-2019 at 14:51.
finishlast is offline