02.11.2009, 16:01
The title tells it all...
Thank you
Thank you
new str[128],pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,sizeof(pName)); format(str,sizeof(str),"TeamMsg (%s): %s",pName,cmdtext/text); for(new i = 0; i < MAX_PLAYERS; i++) { if(gTeam[i] == gTeam[playerid]) { SendClientMessage(i,COLOR,str); } }
if(GetPlayerTeam(playerid))
if(gTeam[i] == gTeam[playerid])
Originally Posted by GTA967
yes of corse
|
Originally Posted by FreddeN
Great, how would that look like, I got problems to put it in...
|
if(GetPlayerTeam(i) == GetPlayerTeam(playerid))
{
// _send_the_msg_
}
Originally Posted by Don Correlli
Quote:
pawn Код:
|
if (strcmp("/tpm", cmdtext, true, 4) == 0) { new str[128],pName[MAX_PLAYER_NAME]; GetPlayerName(playerid,pName,sizeof(pName)); format(str,sizeof(str),"TeamMsg (%s): %s",pName,cmdtext/text); for(new i = 0; i < MAX_PLAYERS; i++) { if(GetPlayerTeam(i) == GetPlayerTeam(playerid)) { SendClientMessage(i,0xFFFF00FF,str); } } }
undefined symbol "text"