04.06.2011, 05:36
pawn Код:
SetTimer("DisableTDS",6000,false);
public DisableTDS(playerid) {
TextDrawHideForPlayer(playerid,ObjectiveTD[playerid]);
return 1;
}
SetTimer("Finshed2",300000,false);
public Finshed2(playerid)
{
SendClientMessageToAll(COLOR_WHITE,"Defenders Win!");
for(new i = 0; playerid < MAX_PLAYERS; playerid++)
{
if(IsPlayerConnected(i))
{
if(gTeam[playerid] == TEAM_ATTACKERS)
{
GameTextForPlayer(i, "~g~ YOUR TEAM LOST ~n~~y~-1000", 6000, 4);
GivePlayerMoney(i, -1000);
}
else if(gTeam[playerid] == TEAM_DEFENDERS)
{
GameTextForPlayer(i, "~r~ YOUR TEAM WON ~n~~y~+5000", 6000, 4);
GivePlayerMoney(i, 5000);
}
}
}
SetTimer("Finshed", 8000, 0);
return 1;
}
At least try to test before you release, you're going to cause people to complain why stuff aint working.
Good job, and bad job at the timers..