22.12.2011, 23:36
pawn Код:
new pcash = random(100000);
if(pcash > GetPlayerMoney(target))
{
pcash = random(100000);
if(pcash > GetPlayerMoney(target))
{
// failed to rob
}
else
{
GivePlayerMoney(robber,pCash);
GivePlayerMoney(target,-pCash);
}
else
{
GivePlayerMoney(robber,pCash);
GivePlayerMoney(target,-pCash);
}