12.06.2010, 21:37
I use LARP gamemode, and now i fix it little bit, in all shops i can buy everything if i have money, but in First 24/7 it always shows that i dont have money
And here is the function;
And here is the function;
pawn Код:
public SafeGivePlayerMoney(plyid, amounttogive)
{
new curHour, curMinute, curSecond;
gettime(curHour, curMinute, curSecond);
ScriptMoneyUpdated[plyid] = curSecond;
if (amounttogive < 0)
{
GivePlayerMoney(plyid, amounttogive);
ScriptMoney[plyid] = (ScriptMoney[plyid] + amounttogive);
}
else
{
ScriptMoney[plyid] = (ScriptMoney[plyid] + amounttogive);
GivePlayerMoney(plyid, amounttogive);
}
return 1;
}