27.08.2011, 08:21
Quote:
This? Just put corrdinates for buy
Код:
CMD:buybeer(playerid,params[]) { if(!IsPlayerInRangeOfPoint(playerid,4.0,x,y,z) return SendClientMessage(playerid,-1,"Samo comment if hi out of corrdinates");//put coordinates instead of x,y,z PlayerInfo[playerid][pBeer]++; GivePlayerMoney(playerid, -5);//Put how much money SendClientMessage(playerid,-1,"You bought beer"); return 1; } |