![]() |
|
Help position - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Help position (/Thread-Help-position.html) |
position - [HARD] Tony. - 05-14-2013 guys why do I have this crap here-I'd say in the game !tp- in the console should write server Print,yes no 1 problem Code: if (Message.ToLower().StartsWith("!tp"))
{
Entity entdefault = SpawnModel("script_model", "prop_flag_neutral", new Vector(locationX, locationY, locationZ));
ent++;
ServerPrint("Entity ent" + ent + " = SpawnModel(" + "script_model" + "," + "prop_flag_neutral" + "," + "new Vector(" + locationX + "f" + "," + locationY + "f" + "," + locationZ + "f" + "))" + ";");
return ChatType.ChatNone;
}bitch fucking bug- (2793,679f,4393,263f,6760,508f)); actually I correct it here so (2793.679f,4393.263f,6760.508f)); how can I fix it? and not through the console and recorded the coordinates to a file .TXT,bug in "new Vector(" + locationX + "f" + "," + locationY + "f" + "," + locationZ + "f" + "))" + ";"); RE: position - Nekochan - 05-14-2013 F*ck TABs and spaces. Code: if (Message.ToLower().StartsWith("!tp"))
{
int locx, locy, locz;
Entity entdefault = SpawnModel("script_model", "prop_flag_neutral", new Vector(locationX, locationY, locationZ));
ent++;
locx = Convert.ToInt32(locationX);
locy = Convert.ToInt32(locationY);
locz = Convert.ToInt32(locationZ);
ServerPrint("Entity ent" + ent + " = SpawnModel(" + "script_model" + "," + "prop_flag_neutral" + "," + "new Vector(" + locz + "f" + "," + locy + "f" + "," + locz + "f" + "))" + ";");
return ChatType.ChatNone;
}OR HOW TO CONVERT FLOAT TO INT RE: position - [HARD] Tony. - 05-14-2013 (05-14-2013, 17:59)SailorMoon Wrote: F*ck TABs and spaces. |