SA-MP Forums Archive
Need help Gametextforplayer +1 rep - 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: Need help Gametextforplayer +1 rep (/showthread.php?tid=431064)



Need help Gametextforplayer +1 rep - canip - 16.04.2013

Hey i need help to how i can repast from a
PHP код:
format(string,sizeof(string),"You are now in {5CB3FF}%s's{FFFFFF} zone!"name); 
there will come in the chat to it come in a Gametextforplayer format?

PHP код:
if (count != 0)
            {
                if (
GetPVarInt(i"IsInOrgZone") == 0)
                {
                new 
string[120];
                if (
PlayerOrg[i] == GetOrgID(name))
                {
                
format(string,sizeof(string),"Welcome to your organization's zone!");
                }
                else
                {
                
format(string,sizeof(string),"You are now in {5CB3FF}%s's{FFFFFF} zone!"name);
                }
                
SendClientMessage(iCOLOR_WHITEstring);
                
SetPVarInt(i"IsInOrgZone"1);
                return 
1



Re: Need help Gametextforplayer +1 rep - MattSlater - 16.04.2013

GameTextForPlayer(i, string, 2500, 4);
under the string


Re : Need help Gametextforplayer +1 rep - DaTa[X] - 16.04.2013

you can use gametextforplayer/all only with this colors
Код:
~w~ white
~y~yellow
~r~red
~b~blue 
~p~purple
~n~new line
~h~light



Re: Need help Gametextforplayer +1 rep - canip - 16.04.2013

Can you try to script it. So i Can see what you mean?


Re: Need help Gametextforplayer +1 rep - z3r0w1zard - 16.04.2013

https://sampwiki.blast.hk/wiki/GameTextForPlayer