24.12.2013, 22:05
Hello i have create a payday only for Police and problem is money come just to me no to other player here is the code
Thank you.
pawn Код:
public OnGameModeInit()
{
SetTimer("PayDay",540000,1);
return 1;
}
forward PayDay();
public PayDay()
{
for(new i=0; i<MAX_PLAYERS_; i++)
{
if(!IsPlayerConnected(i))continue;
if(gTeam[i] == TEAM_SWAT || gTeam[i] == TEAM_ARMY)
{
if(IsPlayerSpawn[i] == 0)continue;
GivePlayerMoney(i, 1000);
SendClientMessage(i,0xE89B5BBB,"» Police daily paycheck: $1000.");
return 1;
}
}
return 1;
}