07.06.2012, 06:46
pawn Код:
//top
new money[MAX_PLAYERS];
forward Chkmoney();
//GameModeInit
SetTimer("Chkmoney", 30000, true);
//Anywhere
public Chkmoney()
{
new pname[MAX_PLAYER_NAME],astring[MAX_PLAYER_NAME+128];
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(GetPlayerMoney(i) > money[i])
{
GetPlayerName(i,pname,sizeof(pname));
format(astring,sizeof(astring),"%s(%i) has a cash imbalence, please investigate!", pname,i);
SendClientMessageToAdmins(0xFF0000FF,astring);
}
}
}
}