Kinda new here.
#12

Quote:
Originally Posted by Rks_
or just do a simple thing at onplayertext like:

if(text[0] == ',')
{
if (gTeam[playerid] == TEAM_ITALIAN)
{
new String[128],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(String, 128, "[ITALIAN] %s(%d): %s", pname, playerid, text[1]);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if (gTeam[i] == TEAM_ITALIAN)
{
SendClientMessage(i, COLOR_COLOR, String);
}
}
}
else
{
SendClientMessage(playerid, COLOR_COLOR, "* You are not an Italiano.");
}
return 0;
}
Change the , to your text... now the member of Italian Team has to type , before the message... or

Quote:
Originally Posted by Rks_
or just do a simple thing at onplayertext like:

if(text[0] == '!')
{
if (gTeam[playerid] == TEAM_ITALIAN)
{
new String[128],pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
format(String, 128, "[ITALIAN] %s(%d): %s", pname, playerid, text[1]);
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if (gTeam[i] == TEAM_ITALIAN)
{
SendClientMessage(i, COLOR_COLOR, String);
}
}
}
else
{
SendClientMessage(playerid, COLOR_COLOR, "* You are not an Italiano.");
}
return 0;
}
the member of the Italian Team has to type in ! before every message ...

I hope you get i now

Reply


Messages In This Thread
Kinda new here. - by harly - 01.03.2009, 22:44
Re: Kinda new here. - by x-cutter - 02.03.2009, 01:52
Re: Kinda new here. - by Rks25 - 02.03.2009, 06:17
Re: Kinda new here. - by harly - 02.03.2009, 19:47
Re: Kinda new here. - by Rks25 - 02.03.2009, 19:48
Re: Kinda new here. - by harly - 02.03.2009, 20:00
Re: Kinda new here. - by Rks25 - 02.03.2009, 20:05
Re: Kinda new here. - by harly - 02.03.2009, 20:12
Re: Kinda new here. - by Rks25 - 02.03.2009, 20:12
Re: Kinda new here. - by harly - 02.03.2009, 20:33
Re: Kinda new here. - by Rks25 - 02.03.2009, 20:45
Re: Kinda new here. - by Zeromanster - 02.03.2009, 21:17
Re: Kinda new here. - by Rks25 - 03.03.2009, 13:22

Forum Jump:


Users browsing this thread: 2 Guest(s)