GameTextForAll - 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)
+--- Thread: GameTextForAll (
/showthread.php?tid=381599)
GameTextForAll -
Beljulji - 30.09.2012
i made autorestart for server and now i want to add GameTextForall 1 or 2 minutes before server restart so players will know when server will restar and btw timer is set to 12 hours, someone help me? giving +Rep
Re: GameTextForAll -
trapstar2020 - 30.09.2012
well make a time 11:58 that sends a gametext
Re: GameTextForAll -
Beljulji - 30.09.2012
well my time in GM doesnt change at all its always 12 (day) and i was thinking about adding timer i done all but houw i can add gametextforall?
Re: GameTextForAll -
trapstar2020 - 30.09.2012
pawn Code:
forward timer();//forward the function
gamemodeint//under gamemint
SetTimer("timer", 10080000,true);//public a timer on the forward timer for 11:58 from when the gamemode started,or restarted when that time iz up the info inside th public would be sent
public timer()//fowarding the foward
{
GameTextForAll("Server Restarting In 2 minutes",30000,0);// display text for 30 seconds
return 1;
}
Re: GameTextForAll -
Beljulji - 30.09.2012
I get this when i compile
Code:
C:\Users\Beljulji\Documents\Samp Server\gamemodes\UltimateStunt.pwn(7062) : error 017: undefined symbol "GameTextForAllPlayers"
Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase
1 Error.
so i changed to
Code:
GameTextForAll("~b~Server Will Restart Soon",7000,0);
and now works anyway ty
Re: GameTextForAll -
trapstar2020 - 30.09.2012
oopps sorry about that
i forgot to remove players
anyway cool right REP++ it help state what ive been doing
Re: GameTextForAll -
M3mPHi$_S3 - 30.09.2012
use this
pawn Code:
forward timer();//forward the function
public Ongamemodeint
SetTimer("timer", 10080000,true);
public timer() //fowarding the foward
{
GameTextForAll("Server Restarting In 2 minutes",30000,0);// with some changes
return 1;
}
Re: GameTextForAll -
trapstar2020 - 30.09.2012
u need 2 remove player it waz a typo by me and next time quote it