08.04.2019, 15:56
Hi, I want to create a point. Players can use command plantseed it inside point , but I want to be a point square
For example I would plant in this area
https://imgur.com/VmnFuop
For example I would plant in this area
https://imgur.com/VmnFuop
Code:
CMD:plantseed(playerid,params[]) { if(pinfo[playerid][seeds] < 1) return SendClientMessage(playerid,-1,"[SERVER] You haven't enought seeds"); if(IsPlayerInVehicle(playerid,GetPlayerVehicleID(playerid))) return SendClientMessage(playerid,-1,"[SERVER] You can't do it in a vehicle"); new id = plantcount CreateObject(2247, winfo[id][poswx], winfo[id][poswy], winfo[id][poswz]-1,-1,-1,-1,100.0); pinfo[playerid][seeds] = pinfo[playerid][seeds] - 1;