SendClientAnnouncement(playerid
#1

Hallo ik zit met klein probleem
Ik zou graag deze tekst pas naar 10 seconden hebben als iemand joint
nu komt het er gelijk te staan.

weet iemand hoe dit moet
Alvast bedankt
gr Rutger188
---------------------------------------------------------------------------------------------------------------
Hello I sit with little problem
I would like to only have this text to 10 seconds if someone joint
Now it is equivalent to.

does anyone know how to do this
thanks
gr Rutger188



Quote:

format(string, sizeof(string), "Welcome To ~y~%s~n~~b~%s~n~~w~Type ~y~/help~w~, ~y~/rules ~w~or~n~~y~/cmds ~w~For Game Info",ServerInfo[sMapName],PlayerInfo[playerid][pName]);
SendClientAnnouncement(playerid,string);

Reply
#2

Use the GameTextForAll function.
https://sampwiki.blast.hk/wiki/GameTextForAll
Reply
#3

Quote:
Originally Posted by rutger188
Посмотреть сообщение
Hallo ik zit met klein probleem
Ik zou graag deze tekst pas naar 10 seconden hebben als iemand joint
nu komt het er gelijk te staan.

weet iemand hoe dit moet
Alvast bedankt
gr Rutger188
---------------------------------------------------------------------------------------------------------------
Hello I sit with little problem
I would like to only have this text to 10 seconds if someone joint
Now it is equivalent to.

does anyone know how to do this
thanks
gr Rutger188
Leer Engels alsjeblieft....
Please learn English....
Reply
#4

Je hebt de beste engels in de wereld
You have the best english in the world
Reply
#5

you guys should help him

simply use this

pawn Код:
format(string, sizeof(string), "Welcome To ~y~%s~n~~b~%s~n~~w~Type ~y~/help~w~, ~y~/rules ~w~or~n~~y~/cmds ~w~For Game Info",ServerInfo[sMapName],PlayerInfo[playerid][pName]);
GameTextForAll(string, 10000, 3);
Reply
#6

Use timer! There are many tut and other things related to this GameTextForAll with timer.

"You have the best english in the world"
Man what if he is using translator?

@Namer - you are right!
Reply
#7

If you want a message when someone joins simply add this code between the curly braces of OnPlayerConnect.

Код:
SetTimer("message", 10000, false); //set the timer, message is the name of our class, 10000 our time in miliseconds and false to set no repeating.

public message()
{
       SendClientMessageToAll("-1", "Your message.");
}
Please rep if this helped you.

Raaf
Reply
#8

Quote:
Originally Posted by rutger188
Посмотреть сообщение
Hallo ik zit met klein probleem
Ik zou graag deze tekst pas naar 10 seconden hebben als iemand joint
nu komt het er gelijk te staan.

weet iemand hoe dit moet
Alvast bedankt
gr Rutger188
---------------------------------------------------------------------------------------------------------------
Hello I sit with little problem
I would like to only have this text to 10 seconds if someone joint
Now it is equivalent to.

does anyone know how to do this
thanks
gr Rutger188
Just do;
pawn Код:
format(string, sizeof(string), "Welcome To ~y~%s~n~~b~%s~n~~w~Type ~y~/help~w~, ~y~/rules ~w~or~n~~y~/cmds ~w~For Game Info",ServerInfo[sMapName],PlayerInfo[playerid][pName]);
GameTextForPlayer(playerid, string, <PUT YOUR TIME IN MILLISECONDS YOU WANT THE TEXT TO BE DISPLAYED>, <Choose your style from here: http://wiki.sa-mp.com/wiki/GameTextStyle>);
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)