05.04.2011, 16:53
The code would be well
pawn Код:
public OnPlayerUpdate(playerid)
{
if(!IsPlayerConnected(playerid)) return 0;
// No weapons in interiors
if(GetPlayerInterior(playerid) != 0 && GetPlayerWeapon(playerid) != 0) {
SetPlayerArmedWeapon(playerid,0); // fists
return 0; // no syncing until they change their weapon
}
if(GetPlayerMoneyEx(playerid) != GetPlayerMoney(playerid))
{
new const old_money = GetPlayerMoneyEx(playerid);
ResetPlayerMoneyEx(playerid), GivePlayerMoneyEx(playerid, old_money);
}
return 1;
}