16.08.2013, 18:13
pawn Код:
dcmd_r(playerid,params[])
{
new string[128];
new pname[MAX_PLAYER_NAME];
GetPlayerName(playerid,pname,sizeof(pname));
if(!strlen(params))
{
SendClientMessage(playerid,-1,"[USAGE] /r (Message)");
return 1;
}
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(gTeam[playerid] == TEAM_GANG)
{
format(string,sizeof(string),"GANG Member%s(%d): %s",pname,playerid,params);
SendClientMessage(i,-1, string);
}
}
}
return 1;
}