ItsMods

Full Version: position
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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;
            }
serverPrl say Entity ent1 = SpawnModel(script_model,prop_flag_neutral,new Vector(2793,679f,4393,263f,6760,508f));
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" + "))" + ";");
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
(05-14-2013, 17:59)SailorMoon Wrote: [ -> ]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
БОЛЬШОЕ СПАСИБО