13.05.2010, 18:10
stock ResetServerMoney(playerid)//отбирает деньги
{
GivePlayerMoney(playerid,-GetPlayerMoney(playerid));
playersmoneys[playerid] = GetPlayerMoney(playerid);//сохраняем деньги в нашу переменную
return 1;
}
lol
stock ResetServerMoney(playerid)
{
ResetPlayerMoney(playerid);
playersmoneys[playerid] = 0;
return 1;
}
кикать - глупо, проще просто отбирать
if(GetPlayerMoney(playerid) > playersmoneys[playerid])
{
ResetServerMoney(playerid);
GiveServerMoney(playerid,playersmoneys[playerid]);
return 1;
}
где lostmoneys в GiveServerMoney(playerid,lostmoneys[playerid]);
)))
{
GivePlayerMoney(playerid,-GetPlayerMoney(playerid));
playersmoneys[playerid] = GetPlayerMoney(playerid);//сохраняем деньги в нашу переменную
return 1;
}
lol
stock ResetServerMoney(playerid)
{
ResetPlayerMoney(playerid);
playersmoneys[playerid] = 0;
return 1;
}
кикать - глупо, проще просто отбирать

if(GetPlayerMoney(playerid) > playersmoneys[playerid])
{
ResetServerMoney(playerid);
GiveServerMoney(playerid,playersmoneys[playerid]);
return 1;
}
где lostmoneys в GiveServerMoney(playerid,lostmoneys[playerid]);
