Takım ile konusma
#1

public OnPlayerText(playerid,text[])
{
if(text[0] == '!')
{
new name[24], string[256];
GetPlayerName(playerid, name, 24);
format(string, sizeof(string), "*[Takım Konuşması] %s: %s", name, text[1]);
printf("%s", string);

for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if (gTeam[i] == gTeam[playerid])
SendClientMessage(i, GetPlayerColor(playerid), string);

}
}

return 0;
}
return 1;
}
ALINTIDIR
Reply
#2

Gьzel Bende Bunu Arıyordum.
Reply
#3

EDİT:

Yanlışlıkla yazdım
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)