Page 1 of 1

why wont this work??? no force skin script

Posted: Wed May 21, 2003 1:00 pm
by king_of_hi_ping
Hi there,

found this srcript on the map script tank..

it was thread in prespawn and works when i am alone on the game...

tried to make a trigger_multiple for it and add it to our dedicated server ... works for the first person to run threw ... but wont reset ..

if i thread it in prespawn it wont work at all..

here is the origianl as written in the tank..

no_force_models:
thread debugtext "THREAD no_force_models:"

local.fm = getcvar ("cg_forcemodel")

thread debugtext " cg_force_models = " local.fm

while (1)
{
local.fm = getcvar ("cg_forcemodel")

if (local.fm != "0")
{
thread debugtext " CHEATER !!!! Reset cg_forcemodel to 0 CHEATER !!!"
iprintlnbold ("CHEATER Has been spotted, had force models on !!!")
setcvar "cg_forcemodel" "0"
}

wait 1
}

thread debugtext "ENDTHREAD no_force_models:"
end



for my trigger i added to this script.

local.fm = parm.other

this works if i run threw .. but wont work again if i reset my force or have another player run threw ...


help anyone???

Posted: Wed May 21, 2003 2:28 pm
by jv_map
getcvar reads a server variable not a client variable :roll:

Posted: Wed May 21, 2003 2:58 pm
by king_of_hi_ping
this is what i tought as well, but when i load it in the server, it does work ,
it comes up with the message, but then will not work for the next player

this is due to the fact the first player is not released from being local.fm

or the script is not reset,

if the trouble is that it is looking at the server how whould i make it look at the player,??

thanks

Posted: Wed May 21, 2003 3:08 pm
by jv_map
It's not possible - simple as that :(