13.02.2017, 19:06
Hey guys I need that to be GameTextForPlayer
Thanks alot.
pawn Код:
//InfoTD_MSG(playerid, 4000, tmp);
//InfoTD_MSG(playerid, 4000, tmp);
TeleMSG(playerid, telename[]) { format(str, sizeof(str), "~>~ ~w~%s(%i) ~w~has gone to ~w~%s", pName[playerid], playerid, telename); TextDrawSetString(TeleTD, str); format(tmp, sizeof(tmp), "7[Teleport]4 %s(%i) has gone to 2%s", pName[playerid], playerid, telename); IRC_GroupSay(ircGroup, IRC_CHANNEL, tmp); switch(random(5)) { case 0: format(tmp, sizeof(tmp), "~p~~h~Welcome to ~p~%s~p~~h~!", telename); case 1: format(tmp, sizeof(tmp), "~y~~h~Welcome to ~y~%s~y~~h~!", telename); case 2: format(tmp, sizeof(tmp), "~b~~h~Welcome to ~b~%s~b~~h~!", telename); case 3: format(tmp, sizeof(tmp), "~r~~h~~h~Welcome to ~r~%s~r~~h~!", telename); case 4: format(tmp, sizeof(tmp), "~g~~h~Welcome to ~g~%s~g~~h~!", telename); } InfoTD_MSG(playerid, 4000, tmp); //GameTextForPlayer(playerid, 5000, 2); if(GetPVarInt(playerid, "TimeChanged")) {
Код:
TeleMSG(playerid, telename[]) { format(str, sizeof(str), "~>~ ~w~%s(%i) ~w~has gone to ~w~%s", pName[playerid], playerid, telename); TextDrawSetString(TeleTD, str); format(tmp, sizeof(tmp), "7[Teleport]4 %s(%i) has gone to 2%s", pName[playerid], playerid, telename); IRC_GroupSay(ircGroup, IRC_CHANNEL, tmp); switch(random(5)) { case 0: format(tmp, sizeof(tmp), "~p~~h~Welcome to ~p~%s~p~~h~!", telename); case 1: format(tmp, sizeof(tmp), "~y~~h~Welcome to ~y~%s~y~~h~!", telename); case 2: format(tmp, sizeof(tmp), "~b~~h~Welcome to ~b~%s~b~~h~!", telename); case 3: format(tmp, sizeof(tmp), "~r~~h~~h~Welcome to ~r~%s~r~~h~!", telename); case 4: format(tmp, sizeof(tmp), "~g~~h~Welcome to ~g~%s~g~~h~!", telename); } InfoTD_MSG(playerid, 4000, tmp); //GameTextForPlayer(playerid, 5000, 2); if(GetPVarInt(playerid, "TimeChanged")) { |
TeleMSG(playerid, telename[])
{
format(str, sizeof(str), "~>~ ~w~%s(%i) ~w~has gone to ~w~%s", pName[playerid], playerid, telename);
TextDrawSetString(TeleTD, str);
format(tmp, sizeof(tmp), "7[Teleport]4 %s(%i) has gone to 2%s", pName[playerid], playerid, telename);
IRC_GroupSay(ircGroup, IRC_CHANNEL, tmp);
switch(random(5))
{
case 0: format(tmp, sizeof(tmp), "~p~~h~Welcome to ~p~%s~p~~h~!", telename);
case 1: format(tmp, sizeof(tmp), "~y~~h~Welcome to ~y~%s~y~~h~!", telename);
case 2: format(tmp, sizeof(tmp), "~b~~h~Welcome to ~b~%s~b~~h~!", telename);
case 3: format(tmp, sizeof(tmp), "~r~~h~~h~Welcome to ~r~%s~r~~h~!", telename);
case 4: format(tmp, sizeof(tmp), "~g~~h~Welcome to ~g~%s~g~~h~!", telename);
}
GameTextForPlayer(playerid, tmp,4000, 6);
if(GetPVarInt(playerid, "TimeChanged"))