27.05.2011, 17:49
(
Последний раз редактировалось Kitten; 24.11.2013 в 06:10.
)
Solved
the money part doesnt actually work either
heres the other part of the code that calls the function is on pawn Код:
pawn Код:
|
public DEFWIN()
{
SendClientMessageToAll(COLOR_WHITE, "SERVER: Defenders won");
for(new playerid = 0; playerid < MAX_PLAYERS; playerid++)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == TEAM_ATTACKERS)
{
GameTextForPlayer(playerid, "~g~ YOUR TEAM LOST ~n~~y~-1000", 6000, 4);
GivePlayerMoney(playerid, -1000);
}
else if(gTeam[playerid] == TEAM_DEFENDERS)
{
GameTextForPlayer(playerid, "~r~ YOUR TEAM WON ~n~~y~+5000", 6000, 4);
GivePlayerMoney(playerid, 5000);
}
}
}
SetTimer("Finshed", 8000, false);
return 1;
}