why wont this work??? no force skin script

Post your scripting questions / solutions here

Moderator: Moderators

Post Reply
king_of_hi_ping
Corporal
Posts: 30
Joined: Wed Feb 05, 2003 7:17 pm

why wont this work??? no force skin script

Post 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???
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

getcvar reads a server variable not a client variable :roll:
Image
king_of_hi_ping
Corporal
Posts: 30
Joined: Wed Feb 05, 2003 7:17 pm

Post 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
jv_map
Site Admin
Posts: 6521
Joined: Tue Sep 03, 2002 2:53 pm
Location: The Netherlands
Contact:

Post by jv_map »

It's not possible - simple as that :(
Image
Post Reply