04.04.2018, 19:18
Код HTML:
if(KosenjeTrave[playerid] == 1) //Checking is player working { new Float:tX, Float:tY, Float:tZ; for(new i = 0; i < 28; i++) { if(PokosioTrave[playerid] == 28) //This is what we are incerasing (++;) { //todo } else { GetPlayerObjectPos(playerid, obj_KosacTrava[i][playerid], tX, tY, tZ); //If is player in range of these, he will get it incerased if(IsPlayerInRangeOfPoint(playerid, 3.0, tX, tY, tZ)) { DestroyPlayerObject(playerid, obj_KosacTrava[i][playerid]); obj_KosacTrava[i][playerid] = 1; //ITs changing object to non-object value so it cannot be again used obj_KosacTravaPokosena[i][playerid] = CreatePlayerObject(playerid, 826, tX, tY, tZ, 0.0, 0.0, 0.0); //This is creating new object on old one's place PokosioTrave[playerid] += 1; //This is what we are incerasing Job(playerid, "Odlicno Vam ide! Preostalo objekata trave: %d.", 28-PokosioTrave[playerid]); //Message printf("Igrac sada ima %d trave", PokosioTrave[playerid]); //debug } else if(!IsPlayerInRangeOfPoint(playerid, 3.0, tX, tY, tZ)) { print("Igrac nije kod objekta"); //Showing is player in range of that object } } } }
Help, look at time stamp, here is InGame msg
https://imgur.com/a/Qewyv
(( This attached object is just random cords, don't look at it xD )