Mode Problem
#1

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

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

I will test it soon, thanks.
Reply
#4

Please give rep if I helped.
Reply
#5

Actually, near the beginning of the GM:
pawn Код:
#define SERVER_GM_TEXT "YOURGMNAME"
+1 to my rep If i helped.
Reply
#6

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

Sorry for double posting but this is under GameModeInit

PHP код:
public OnGameModeInit()
{
    print(
"Stage 1");
    
SetNameTagDrawDistance(30.0);
    
EnableStuntBonusForAll(0);
    for(new 
0MAX_VEHICLESi++)
    {
        
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] = 0IRCInfo[1][iPlayers] = 0IRCInfo[2][iPlayers] = 0;
    
IRCInfo[3][iPlayers] = 0IRCInfo[4][iPlayers] = 0IRCInfo[5][iPlayers] = 0;
    
IRCInfo[6][iPlayers] = 0IRCInfo[7][iPlayers] = 0IRCInfo[8][iPlayers] = 0;
    
IRCInfo[9][iPlayers] = 0;
    
ManualVehicleEngineAndLights();
    
SetGameModeText("thestufftheredontchange");
    
format(motdsizeof(motd), "Welcome to One Life Roleplay.");
    
format(motdsizeof(motd), "Use /changes to see our recent updates.");
    
gettime(ghourgminutegsecond);
    
FixHour(ghour);
    
ghour shifthour;
    if(!
realtime)
    { 
Reply
#8

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

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

I made a very simple tutorial for setting mode text:

http://forum.sa-mp.com/showthread.ph...27#post1737327

I hope it helps!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)