I need help for my script, I need a wait function ie waittil (""); for when a specific map falls, perform the action, something like waittil ("mp_hijacked"); this is an invention that I just wrote but it is so that you have a notion of what I mean
-
As I said above:
I need help for my script, I need a wait function ie waittil (""); for when a specific map falls, perform the action, something like waittil ("mp_hijacked"); this is an invention that I just wrote but it is so that you have a notion of what I meanI explain what I am thinking of doing, I would need something like that, for once that map falls in the server rotation, some functions are executed, for example, I would like a specific script to be loaded on that map, it is loaded, it is say I want that when I load the map mp_hijacked it loads an example script the infected script similar to mw3, or when I load another map it loads another script that is the game mode only to sniper. In other words, a switch for when you load a specific map, load the script
-
As I said above:
I need help for my script, I need a wait function ie waittil (""); for when a specific map falls, perform the action, something like waittil ("mp_hijacked"); this is an invention that I just wrote but it is so that you have a notion of what I meanI explain what I am thinking of doing, I would need something like that, for once that map falls in the server rotation, some functions are executed, for example, I would like a specific script to be loaded on that map, it is loaded, it is say I want that when I load the map mp_hijacked it loads an example script the infected script similar to mw3, or when I load another map it loads another script that is the game mode only to sniper. In other words, a switch for when you load a specific map, load the script
alejandrodarz Here ya go. Simple if statement for ya.
if ( getDvar("mapname") == "mp_hijacked" ) { //put scripts here } -
alejandrodarz Here ya go. Simple if statement for ya.
if ( getDvar("mapname") == "mp_hijacked" ) { //put scripts here }Cahz
Right now I am going to try it, thank you very much, I am a noob in this, if I have spent 7 days learning to make scripts and others -
alejandrodarz Here ya go. Simple if statement for ya.
if ( getDvar("mapname") == "mp_hijacked" ) { //put scripts here }Cahz
it worked thank you very much, another question, if you can answer it I will thank you a lot, how can I put what you just told me but instead of the map just add the mode, that is to say so that when you load mp_hijacked in TDM mode -
alejandrodarz Here ya go. Simple if statement for ya.
if ( getDvar("mapname") == "mp_hijacked" ) { //put scripts here }Cahz
I already made it, I guided yours and gave me something like this if (getDvar ("g_gametype") == "tdm") -
alejandrodarz Here ya go. Simple if statement for ya.
if ( getDvar("mapname") == "mp_hijacked" ) { //put scripts here }Cahz I need another help, I need a script or the code, for once a player has reached 2 kills or more is an example, without dying get a killstreak
-
alejandrodarz Here ya go. Simple if statement for ya.
if ( getDvar("mapname") == "mp_hijacked" ) { //put scripts here }Cahz I already have the code to give the killstreak to the players and they cannot die, but I have not come across the code as a wait, that is, this is an example self waittill kill = 2 or with if self.kills = 2. Now putting this I remembered a code that I don't know if it works is this if self.pers ["kills"]
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login