Mode Problem - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Server (
https://sampforum.blast.hk/forumdisplay.php?fid=6)
+--- Forum: Server Support (
https://sampforum.blast.hk/forumdisplay.php?fid=19)
+--- Thread: Mode Problem (
/showthread.php?tid=326205)
Mode Problem[rep+] -
Georgi166 - 16.03.2012
Hey, I recently started to script again and i got one of my old scripts.I want to change its name, All done but the "Mode" thingy still stays the old name.How can i change it?
Re: Mode Problem -
iRemix - 16.03.2012
What do you mean by mode name?
If you mean what I think you mean, then you should add:
pawn Код:
public OnGameModeInit()
{
SetGameModeText("Changethishere");
return 1;
}
I hope it helped, if it did it would be much appreciate for some more reputation.
Re: Mode Problem -
Georgi166 - 16.03.2012
I will test it soon, thanks.
Re: Mode Problem -
iRemix - 16.03.2012
Please give rep if I helped.
Re: Mode Problem -
Quinlynn - 16.03.2012
Actually, near the beginning of the GM:
pawn Код:
#define SERVER_GM_TEXT "YOURGMNAME"
+1 to my rep If i helped.
Re: Mode Problem -
Georgi166 - 17.03.2012
iRemix actually found the right answer but the Mode text dont change!I changed it in the Gamemode but it actually dont change in the SA-MP Client
Re: Mode Problem -
Georgi166 - 17.03.2012
Sorry for double posting but this is under GameModeInit
PHP код:
public OnGameModeInit()
{
print("Stage 1");
SetNameTagDrawDistance(30.0);
EnableStuntBonusForAll(0);
for(new i = 0; i < MAX_VEHICLES; i++)
{
Gas[i] = 100;
}
LoadBizz();
print("Stage 2");
LoadBoxer();
print("Stage 3");
LoadStuff();
print("Stage 4");
LoadIRC();
print("Stage 5");
LoadFamilies();
print("Stage 6");
LoadPoints();
print("Stage 7");
IRCInfo[0][iPlayers] = 0; IRCInfo[1][iPlayers] = 0; IRCInfo[2][iPlayers] = 0;
IRCInfo[3][iPlayers] = 0; IRCInfo[4][iPlayers] = 0; IRCInfo[5][iPlayers] = 0;
IRCInfo[6][iPlayers] = 0; IRCInfo[7][iPlayers] = 0; IRCInfo[8][iPlayers] = 0;
IRCInfo[9][iPlayers] = 0;
ManualVehicleEngineAndLights();
SetGameModeText("thestufftheredontchange");
format(motd, sizeof(motd), "Welcome to One Life Roleplay.");
format(motd, sizeof(motd), "Use /changes to see our recent updates.");
gettime(ghour, gminute, gsecond);
FixHour(ghour);
ghour = shifthour;
if(!realtime)
{
Re: Mode Problem -
iRemix - 17.03.2012
You could try putting SetGameModeText at the top of your OnGameModeInit.
It could be a certain part of your script which isn't working, just try and debug it.
+ Reputation if I helped.
Re: Mode Problem -
petrolhead - 17.03.2012
Quote:
Originally Posted by iRemix
You could try putting SetGameModeText at the top of your OnGameModeInit.
It could be a certain part of your script which isn't working, just try and debug it.
+ Reputation if I helped.
|
Try that.
Re: Mode Problem -
iRemix - 17.03.2012
I made a very simple tutorial for setting mode text:
http://forum.sa-mp.com/showthread.ph...27#post1737327
I hope it helps!