hi i made an anti-camp script , but i have a little problem with flag carriers . flag carriers must stay same places so it sucks when u carrying a flag. how can i detect a flag carrier?
hi i made an anti-camp script , but i have a little problem with flag carriers . flag carriers must stay same places so it sucks when u carrying a flag. how can i detect a flag carrier?
Judging by ctf's code (which you could've read yourself also):
you could check isdefined([player].flagattached) && [player].flagattachedPHP Code:
attachFlag()
{
if(isdefined(self.flagAttached))
return;
if(self.pers["team"] == "allies")
flagModel = "xmodel/prop_flag_" + game["axis"] + "_carry";
else
flagModel = "xmodel/prop_flag_" + game["allies"] + "_carry";
self attach(flagModel, "J_Spine4", true);
self.flagAttached = true;
self thread createHudIcon();
}
"Does not work" is an error report for a bug between keyboard and chair.
All hail Artie Effem
feanor (27th April 2017),kung foo man (26th April 2017)