11.03.2012, 09:24
use this public.
pawn Код:
public MoneyTimer()
{
new username[MAX_PLAYER_NAME];
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(!IsPlayerAdmin(playerid))//this will check if player is not an admin use your scritped var for admin
{
if(GetPlayerCash(i) != GetPlayerMoney(i))
{
ResetMoneyBar(i);//Resets the money in the ori
UpdateMoneyBar(i,GetPlayerCash(i));//Sets the money
new hack = GetPlayerMoney(i) - GetPlayerCash(i)
GetPlayerName(i,username,sizeof(username));
printf("%s has picked up/attempted to spawn $%d
}
}
}
}
}