help plssss
#8

You mean a team chat?
Thats the CMD for it. And change ur location. It feels awkward!

Код:
CMD:t(playerid,params[]) {
#pragma unused params
if(isnull(params)) return SendClientMessage(playerid, red, "To Chat With Your Team: /T [Text]");
new Name[MAX_PLAYER_NAME]; GetPlayerName(playerid, Name, sizeof(Name));
new string[128];
format(string, sizeof(string), "[/T][TEAM CHAT] %s: %s", Name, params[0]);
printf("%s", string);

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i) && gTeam[i] == gTeam[playerid]) SendClientMessage(i, , string);
}
return 1;
}
Reply


Messages In This Thread
help plssss - by MORJAN1122 - 20.11.2013, 16:33
Re: help plssss - by StuartD - 20.11.2013, 16:37
Re: help plssss - by MORJAN1122 - 20.11.2013, 16:54
Re: help plssss - by Luis- - 20.11.2013, 17:03
Re: help plssss - by MORJAN1122 - 20.11.2013, 17:06
Re: help plssss - by Biess - 20.11.2013, 17:13
Re: help plssss - by MORJAN1122 - 20.11.2013, 17:23
Re: help plssss - by Evocator - 20.11.2013, 19:19
Re: help plssss - by MORJAN1122 - 21.11.2013, 03:07
Re: help plssss - by iOxide - 21.11.2013, 09:13

Forum Jump:


Users browsing this thread: 1 Guest(s)