vector getplayerorigin(float pl)
{
string s;
+ entity e;
+
s = getplayerkey(pl, "TEMPHACK_origin");
if(s != "")
return stov(s);
- if(entcs_receiver[pl].classname == "entcs_receiver")
- return entcs_receiver[pl].origin;
+
+ e = entcs_receiver[pl];
+ if(e.classname == "entcs_receiver")
+ return e.origin;
+
return GETPLAYERORIGIN_ERROR;
}