HELP - SCM spam
#3

see whole code, it's in on end of script

Код:
forward TimerTrava(playerid);
	public TimerTrava(playerid)
	{
	new Float:Pos[3];//x,y,z pozicije objekata trave
	new pokoseno = 0;//broj pokoљene trave
	for(new i = 0; i < sizeof(Trava); i++)//prolazi kroz sve objekte trave koje smo kreirali
	{
	GetPlayerObjectPos(playerid, Trava[i][playerid], Pos[0], Pos[1], Pos[2]);//uzima x,y,z pozicije objekata trave
	if(IsPlayerInRangeOfPoint(playerid, 3.0, Pos[0], Pos[1], Pos[2]) && VoziloKosaca(GetPlayerVehicleID(playerid)))//provjera dali je igrač u blizini objekta trave i dali je u kosilici
	{
	DestroyPlayerObject(playerid, Trava[i][playerid]);//unistava objekt trave kroz koji smo prosli
	Trava[i][playerid] = 999;//stavlja varijablu za objekat na 999
	}
	if(Trava[i][playerid] == 999)//provjera dali je objekt trave na 999...
	{
	pokoseno++;//...ako je na 999, povecava broj pokosene trave za 1
	}
	}
	if(pokoseno == 5)//broj pokoљene trave nakon koje ce igrač dobiti novac (ako je pokosio 5 objekata, zavrљava posao)
	{
	Podigniplacu[playerid] = 1;
	SCM(playerid,-1,""SBIZ"(Posao) "BIJELA"Uspijesno si zavrsio sa poslom podigni placu!");
	}
	}
Reply


Messages In This Thread
HELP - SCM spam - by Benac - 19.07.2015, 21:08
Re: HELP - SCM spam - by gurmani11 - 19.07.2015, 21:11
Re: HELP - SCM spam - by Benac - 19.07.2015, 21:16
Re: HELP - SCM spam - by Glenn332 - 19.07.2015, 21:24
Re: HELP - SCM spam - by Benac - 19.07.2015, 22:04
Re: HELP - SCM spam - by Vince - 19.07.2015, 23:30
Re: HELP - SCM spam - by Glenn332 - 19.07.2015, 23:33
Re: HELP - SCM spam - by Benac - 20.07.2015, 00:02
Re: HELP - SCM spam - by Glenn332 - 20.07.2015, 00:35

Forum Jump:


Users browsing this thread: 4 Guest(s)