Code: Select all
iprintln("Hello"); //Will print in bottom left corner
iprintlnbold("Hello"); //Will print in center
As for the velocity command on the script reference, this is only allowed in SP, not MP.
Moderator: Core Staff
Code: Select all
iprintln("Hello"); //Will print in bottom left corner
iprintlnbold("Hello"); //Will print in center
it's zip on normal compression rate isnt it?Rez|l wrote:The command for printing something on the screen is iprintlnbold("text");
The .iwd(not .idw) file is basically .rar format. Just copy one of iw's and delete all of the folders, then create your own(the .gsc-script file should be located in .iwd/maps/mp)
Soviet wrote:Yeah, watch out, Peds will hit you with his +5 D-Battleaxe of homosexuality
Dunno, I open it with winrar all the time. I also read on modsonline a long time ago that it's a rar format but modsonline is shit for anything above basic. -.-Lev!athan wrote: it's zip on normal compression rate isnt it?
Well, duplicate one of the .iwd files you already got with the game(for example, make a copy of iw_12.iwd). Now, create a new folder in the copy of the iw_12.iwd file called maps and then delete the images folder(the sequence is important, if you delete the images folder first, the .iwd won't contain anything and will be deleted). Now, inside the maps folder make another folder called mp and place your mp_portal.gsc(from raw) into the .iwd. This is the safest method of making an .iwd as I've noticed sometimes when making one directly from raw folders doesn't always work for me.I'm not sure what you mean by copy one of iw's and deleting. What file/folder do I need to copy and what do I need to delete?
Thanks, but still got questions;Rez|l wrote:Dunno, I open it with winrar all the time. I also read on modsonline a long time ago that it's a rar format but modsonline is shit for anything above basic. -.-Lev!athan wrote: it's zip on normal compression rate isnt it?
Well, duplicate one of the .iwd files you already got with the game(for example, make a copy of iw_12.iwd). Now, create a new folder in the copy of the iw_12.iwd file called maps and then delete the images folder(the sequence is important, if you delete the images folder first, the .iwd won't contain anything and will be deleted). Now, inside the maps folder make another folder called mp and place your mp_portal.gsc(from raw) into the .iwd. This is the safest method of making an .iwd as I've noticed sometimes when making one directly from raw folders doesn't always work for me.I'm not sure what you mean by copy one of iw's and deleting. What file/folder do I need to copy and what do I need to delete?
Awesome tips, thanks.Drofder2004 wrote:Read my tutorial on the use of "notify" (I think I completed that part?)
println() is for printing to the console (good for creating or logging text)
I could not tell you the reason for AllClientsPrint as I have not tested it and using iprintln/bold will print to the server, which everyone should see. My guess is that you can make the message sent personalised to the player.
sayAll() is a command I haven't used or tested, but I gather it sends a message to all players (same as if you were to press 't' and type).
announcement() I have never used.
---
As for IWD's, I have always used "pakscape.exe". Google and find on filefront (most game have a format in it, just use pk3 and rename to iwd).
Soviet wrote:Technically all servers on MW2 are dedicated servers because they're all dedicated to sucking
Soviet wrote:Technically all servers on MW2 are dedicated servers because they're all dedicated to sucking
Code: Select all
Total rooms: 10
Day: 14
Water: 15 liters
Apple juice: 12 liters
Cola: 3 liter
Life: 2
Soviet wrote:Technically all servers on MW2 are dedicated servers because they're all dedicated to sucking
Oooh damn... This is awkward...Rez|l wrote:ffs, the images folder is in the iw_12.iwd file. Make a copy of it, open it with winrar and make a maps fodler inside the copy of iw_12.iwd. Then delete the images folder. -.-
Code: Select all
// AllClientsPrint("2"); Low-left
// Announcement("3"); Center
// IPrintLnBold("5"); Low-left
// Print("6"); Center
Code: Select all
IPrintLnBold(level.player GetStance());
Soviet wrote:Technically all servers on MW2 are dedicated servers because they're all dedicated to sucking
: iprintlnbold(text)CX gamer wrote:Oooh damn... This is awkward...Rez|l wrote:ffs, the images folder is in the iw_12.iwd file. Make a copy of it, open it with winrar and make a maps fodler inside the copy of iw_12.iwd. Then delete the images folder. -.-
Thanks, I'll try it now...
EDIT: Great! That works!
First results where it prints the text;EDIT2: What's wrong with this code?Code: Select all
// AllClientsPrint("2"); Low-left // Announcement("3"); Center // IPrintLnBold("5"); Low-left // Print("6"); Center
It's a simple test I tried, because I know GetStance outputs a string value.Code: Select all
IPrintLnBold(level.player GetStance());
Soviet wrote:Technically all servers on MW2 are dedicated servers because they're all dedicated to sucking
Code: Select all
trigger = getent("sayItTrigger","targetname"); //Defines the trigger
trigger waittill("trigger",player); //Waits until the trigger has been triggered, saves whoever did it as "player"
iprintlnbold("Your stance is " + player.getStance()); //Prints the players stance
Capitalised lettering is the standard used, although the language is not case sensitive.mr-x wrote:: iprintlnbold(text)
weird capital letters again
and maybe level.player is not defined
Its 228kb of file... Its not an install pakage, it is a standalone exe file.CX gamer wrote: As for pakscape, my download limit has been reached for this month. I won't be downloading anything until the 15th.
I just have enough internets to browse text-based sites, if I'm patient. XD
Soviet wrote:Technically all servers on MW2 are dedicated servers because they're all dedicated to sucking
Users browsing this forum: No registered users and 1 guest