30.01.2014, 02:27
pawn Код:
forward CasinoBar(playerid);
new RandomMoney;
CMD:work(playerid,params[])
{
if(IsPlayerInRangeOfPoint(playerid,3,-2655.5090,1406.6702,906.2734))
{
TogglePlayerControllable(playerid,0);
SetPlayerPos(playerid,-2655.5090,1406.6702,906.2734);
SetPlayerFacingAngle(playerid,270);
SetCameraBehindPlayer(playerid);
SetTimerEx("CasinoBar",10000,false,"i",playerid);
}
return 1;
}
public CasinoBar(playerid)
{
RandomMoney = random(20000);
TogglePlayerControllable(playerid,1);
GivePlayerMoney(playerid,RandomMoney);
return 1;
}