05.06.2012, 20:01
in onfilterscriptinut()
SetTimer("Chkmoney", 30000, true);
outside it..
new money[MAX_PLAYERS];
forward Chkmoney();
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!");
SendClientMessageToAdmins(0xFF0000FF,astring);
}
}
}
}
SetTimer("Chkmoney", 30000, true);
outside it..
new money[MAX_PLAYERS];
forward Chkmoney();
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!");
SendClientMessageToAdmins(0xFF0000FF,astring);
}
}
}
}