30.01.2014, 01:56
here it is
Quote:
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); SetTimer("CasinoBar",10000,false); } return 1; } public CasinoBar(playerid) { RandomMoney = random(20000); TogglePlayerControllable(playerid,1); GivePlayerMoney(playerid,RandomMoney); } |