26.09.2010, 07:24
pawn Код:
public BackupClear(playerid, calledbytimer)
{
if(IsPlayerConnected(playerid))
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMember] == 21||PlayerInfo[playerid][pLider] == 21)
{
if (PlayerInfo[playerid][pRequestingBackup] == 1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[playerid][pMember] == 1||PlayerInfo[playerid][pLider] == 1 || PlayerInfo[playerid][pMember] == 2||PlayerInfo[playerid][pLider] == 2 || PlayerInfo[playerid][pMember] == 3||PlayerInfo[playerid][pLider] == 3 || PlayerInfo[playerid][pMember] == 21||PlayerInfo[playerid][pLider] == 21)
{
SetPlayerMarkerForPlayer(i, playerid, TEAM_HIT_COLOR);
}
}
}
if (calledbytimer != 1)
{
SendClientMessage(playerid, TEAM_BLUE_COLOR, "Seu pedido de reforзo foi cancelado.");
}
else
{
SendClientMessage(playerid, TEAM_BLUE_COLOR, "Seu pedido de reforзo foi cancelado automaticamente.");
}
PlayerInfo[playerid][pRequestingBackup] = 0;
}
else
{
if (calledbytimer != 1)
{
SendClientMessage(playerid, COLOR_RED, "Vocк ainda nгo pediu reforзo.");
}
}
}
else
{
if (calledbytimer != 1)
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo й COP");
}
}
}
return 1;
}