16.02.2011, 17:31
Код:
CMD:buybizz(playerid,params[]) { if(IsPlayerConnected(playerid)) { for(new mID = 0; mID <= MAX_BIZZ; mID++) { if(PlayerInPoint(playerid, 2.0, BizzInfo[mID][bPickupX], BizzInfo[mID][bPickupY], BizzInfo[mID][bPickupZ])) { BizzInfo[mID][bOwned] = 1; format(BizzInfo[mID][bOwner], sizeof(stri), "%s", GetName(playerid)); SendClientMessage(playerid, -1, "You bought bizz); } } } return 1; }