SA-MP Forums Archive
Flashing Gamemode name... - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Flashing Gamemode name... (/showthread.php?tid=90041)



Flashing Gamemode name... - Puzi - 05.08.2009

Hey there,

I dont know whether its possible or not but I saw it on couple of servers. What I want is as a mapname to say first of all SA[TDM]RPG v2.0 and then ~Join Us!~ after about 5-10 seconds. Is that possible?

Thanks and Regards
Puzi


Re: Flashing Gamemode name... - MPKaboose - 05.08.2009

change the servers name after an amount of time


Re: Flashing Gamemode name... - Snickers - 05.08.2009

Quote:
Originally Posted by [FxT
ArcticFox ]
change the servers name after an amount of time
Yeah, but he wants to know how to do it automatically I think.


Re: Flashing Gamemode name... - shady91 - 05.08.2009

pawn Код:
new change;
new change1;

forwards

forward change2();
forward change3();

public change2()
{
   SendRconCommand("mapname SA[TDM]RPG v2.0");
     return 1;
}
public change3()
{
   SendRconCommand("mapname ~Join Us!~ ");
     return 1;
}

Add this on gamemodeexit

    KillTimer(change);
    KillTimer(change1);

this on ingamemodeinit

    change = SetTimer("change3", 9000, 1);
    change1 = SetTimer("change2", 4000, 1);
Here i made it for you.


Re: Flashing Gamemode name... - MPKaboose - 05.08.2009

nvm


Re: Flashing Gamemode name... - shady91 - 05.08.2009

Quote:
Originally Posted by [FxT
ArcticFox ]
nvm
what do you mean nvm?


Re: Flashing Gamemode name... - Puzi - 05.08.2009

Yes I did ment the automatic one.

Shady, unfortunately it says Unknown on gamemode and it changed my hostname to one you gave me, but I want it on mapname


Re: Flashing Gamemode name... - MPKaboose - 05.08.2009

Quote:
Originally Posted by Shady91
Quote:
Originally Posted by [FxT
ArcticFox ]
nvm
what do you mean nvm?
the scroll down thing didn't appear and I didn't see the timers

EDIT:
use
pawn Код:
SendRconCommand("mapname NAMEHERE");
instead of
pawn Код:
SendRconCommand("hostname ~Join Us!~ ");



Re: Flashing Gamemode name... - shady91 - 05.08.2009

Quote:
Originally Posted by [FxT
ArcticFox ]
Quote:
Originally Posted by Shady91
Quote:
Originally Posted by [FxT
ArcticFox ]
nvm
what do you mean nvm?
the scroll down thing didn't appear and I didn't see the timers

EDIT:
use
pawn Код:
SendRconCommand("mapname NAMEHERE");
instead of
pawn Код:
SendRconCommand("hostname ~Join Us!~ ");
he said he wants server name to change not map name


Re: Flashing Gamemode name... - Puzi - 05.08.2009

Код:
I dont know whether its possible or not but I saw it on couple of servers. What I want is as a mapname to say first of all SA[TDM]RPG v2.0 and then ~Join Us!~ after about 5-10 seconds. Is that possible?
Nevermind, but thanks, it worked Another help from guys on SA-MP Forums...