11.06.2012, 12:04
oh, yeah, sorry
pawn Код:
public OnPlayerCommandText(playerid, cmdtext[])
{
for(new blue = 0; blue < 5000; blue++)
{
new Text:blsk;
new string [50];
format(string, sizeof string, "blue %d", blue);
TextDrawSetString(blsk, string);
{
if (strcmp("/blue", cmdtext, true, 10) == 0)
{
if (GetPlayerTeam(playerid) == 0)
{
blue = blue + 1;
SetPlayerTeam(playerid, 1);
SendClientMessage(playerid, 0x33aa33aa, "Dabar tu blue teame");
}
if (GetPlayerTeam(playerid) == 1)
{
SendClientMessage(playerid, 0x33aa33aa, "tu jau esi ten");
return 1;
}
}
}
}
return 0;
}