GameTextForAll
#1

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

well make a time 11:58 that sends a gametext
Reply
#3

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

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;
}
Reply
#5

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

oopps sorry about that i forgot to remove players anyway cool right REP++ it help state what ive been doing
Reply
#7

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

u need 2 remove player it waz a typo by me and next time quote it
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)