13.07.2012, 18:28
pawn Код:
forward Check();
public Check()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pPackageLoading] == 1)
{
SendClientMessage(i, COLOR_LIGHTBLUE, "You are now able to load more products.");
}
if(PlayerInfo[i][pPackageLoading] >= 1)
{
PlayerInfo[i][pPackageLoading] --;
}
if(PlayerInfo[i][pPackageLoading] < 0)// AND WHY DO YOU NEED THIS? I WOULD DELETE THIS.
{
PlayerInfo[i][pPackageLoading] = 0;
}
}
}
return 1;
}