Jump to content
  • 0

pomoc Team Chat


LosO

Dotaz

Zdravím,

TAk zasamám menší problém..

Teraz som si chcel spraviť team chat pre zamestnanie v hre normálne zatlačím + text tak to napíše 
ale hneď pod to napíše aj ako keby som písal normalne do chatu.. neviete čo by stým mohlo byť ?

Team chat:
 

if(text[0] == '+')
{
format(string4, sizeof(string4), "[Team Chat] %s: %s", Jmeno(playerid), text[1]);
for(new i = 0; i < MAX_PLAYERS_EX; i++)
{
if(IsPlayerConnected(i))
{
if(Job[i] == Job[playerid])
SendClientMessage(i, 0xcc33ffFF, string4);
}
}
}
 
a pod tým mam ešte toto:

 

if(zaktitul[playerid]==0)
{
format(string4, sizeof(string4), "(%d): %s", playerid, text);
SendPlayerMessageToAll(playerid,string4);
}



if(viptitul[playerid]==1)
{
format(string4, sizeof(string4), "(%d) [VIP]: %s", playerid, text);
SendPlayerMessageToAll(playerid,string4);
}

 

Link to comment
Share on other sites

4 odpovědí na tuto otázku

Recommended Posts

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...