AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Adding a prefix to respawn forever by Geesu (https://forums.alliedmods.net/showthread.php?t=11444)

Jelly 03-19-2005 16:17

Adding a prefix to respawn forever by Geesu
 
Surf maps have become highly popular in the last few months so I decided to add another prefix to his mod

Before version: http://72.21.32.242/~joshb/before.txt - .SMA

ok, So on line '47' it states the prefixs for the sv_checkpistols cvar,

Code:

                if ( containi(mapname,"ka_")!=-1 || containi(mapname,"scoutzknivez")!=-1 )
say I want to add 'surf_' to the prefix so I don't respawn with a pistol, It would be

Code:

                if ( containi(mapname,"ka_")!=-1 || containi(mapname,"scoutzknivez")!=-1  || containi(mapname,"surf_")!=-1 )
Right? No. I added it, Converted it and uploaded and it dosn't work for me.

Does anyone know the solution? Thanks in advance.

-Josh.

Freecode 03-19-2005 22:10

try this
Code:
if ( ( containi(mapname,"ka_") !=-1 ) || ( containi(mapname,"scoutzknivez") !=-1 ) || ( containi(mapname,"surf_") !=-1 ) )

Jelly 03-20-2005 06:23

I just tried it and it didn't work :cry:.

Incase you were wondering here's what the code looks like:

http://72.21.32.242/~joshb/respawn.sma


All times are GMT -4. The time now is 14:14.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.