Is there a command like this? Please help!
#1

Ok, is there a command or something I can put under "OnGameModeInIt" that is like this command: (I made this one up)

OnGameModeRestart,GameTextForPlayer(playerid, "~b~End of round! Game mode restarting!", 1500, 6);


Thanks!
Reply
#2

/rcon login <password>

/rcon changemode [mode]
Reply
#3

Quote:
Originally Posted by Ritchie999
/rcon login <password>

/rcon changemode [mode]
No, thats not really what I wanted.....

I have a timer so my game mode restarts every 5 minutes, I want it to say "Round Over!" or what ever while its showing the score board and restarting the game mode.
Reply
#4

i have no idea, im only new to scripting
Reply
#5

Quote:
Originally Posted by Ritchie999
i have no idea, im only new to scripting
Oh
Reply
#6

Post your timer where you call the gmx. You can add it there.
Reply
#7

Quote:
Originally Posted by Abernethy♥
Post your timer where you call the gmx. You can add it there.
These are what I used:

Код:
forward Restart();

public OnGameModeInIt()
{
SetTimer("Restart",900000,false);
return 1;
}

public Restart()
{
GameModeExit();
}
I got them here: (another one of my posts) http://forum.sa-mp.com/index.php?top...90.0;topicseen
Reply
#8

Quote:
Originally Posted by DeltaAirlines12
Quote:
Originally Posted by Abernethy♥
Post your timer where you call the gmx. You can add it there.
These are what I used:

Код:
forward Restart();

public OnGameModeInIt()
{
SetTimer("Restart",900000,false);
return 1;
}

public Restart()
{
GameModeExit();
}
I got them here: (another one of my posts) http://forum.sa-mp.com/index.php?top...90.0;topicseen
Here, this should work.
pawn Код:
forward Restart();

public OnGameModeInIt()
{
    SetTimer("Restart",900000,false);
    return true;
}

public Restart()
{
    SendRconCommand("gmx");
    GameTextForAll("~b~End of round! Game mode restarting!", 1500, 6);
    return true;
}
Reply
#9

Quote:
Originally Posted by Abernethy♥
Quote:
Originally Posted by DeltaAirlines12
Quote:
Originally Posted by Abernethy♥
Post your timer where you call the gmx. You can add it there.
These are what I used:

Код:
forward Restart();

public OnGameModeInIt()
{
SetTimer("Restart",900000,false);
return 1;
}

public Restart()
{
GameModeExit();
}
I got them here: (another one of my posts) http://forum.sa-mp.com/index.php?top...90.0;topicseen
Here, this should work.
pawn Код:
forward Restart();

public OnGameModeInIt()
{
    SetTimer("Restart",900000,false);
    return true;
}

public Restart()
{
    SendRconCommand("gmx");
    GameTextForAll("~b~End of round! Game mode restarting!", 1500, 6);
    return true;
}
It compiled fine! I will test it now! Thanks for your feedback!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)