Flashing Gamemode name...
#1

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
Reply
#2

change the servers name after an amount of time
Reply
#3

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.
Reply
#4

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.
Reply
#5

nvm
Reply
#6

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

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
Reply
#8

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!~ ");
Reply
#9

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
Reply
#10

Код:
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...
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)