[Pomoc] Nesto oko wl-a


Započeo Markoni990, Avgust 22, 2016, 18:35:27 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Skripta koju koristim:GTARP
Detaljan opis problema: Imam problem sa hitmanom kad uzmem givehit ocu da mi neda wanted level, a kad ne uzme givehit da mu dam da li neko zna kako odraditi to Ja sam definisao kad uzme givehit da mu PlayerInfo[playerid][pDatameta] postavi na 1 a kad ne uzme givehit da mu stavi na 0 ali nece uopste ili ne daje wl sa givehit i bez givehita, a kad stavim na 0 daje i sa givehitom i bez.
Dio skripte:
    if(killerid != INVALID_PLAYER_ID && PlayerInfo[ killerid ][ pDatameta ] == 1 && !IsACop(killerid))
	{
		WantedLevel[killerid] += 2;
		SetPlayerCriminal(killerid,255, "Prvostepeno Ubistvo");
	}

Neke slike/video za lakse dobivanje pomoci(neobavezno):

Ja brt nista nisam skontao ako mozes bolje objasniti ne razumijem nista
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Kad uzmem GiveHit ne treba da mu daje wl i definisano je kad uzme GiveHit da mu postavi PlayerInfo[playerid][pDataMeta] = 1; kapiras sad a kad ne uzme givehit da mu da wl a meni daje i sa jedno i drugo.Kapiras sad buraz? :D

Sta ti je givehit ne razumijem  :D
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Citat: LoOdaK poslato Avgust 22, 2016, 19:48:50 POSLE PODNE
Sta ti je givehit ne razumijem  :D

Ako sam dobro skontao on hoce kad igrač uzme metu da mu ne daje WL ako je ubije, a kad nema metu da mu daje wl

@Markoni990 jesam dobro ili pogrešno skonto xD??

"They have computers, and they may have other weapons of mass destruction."

Cek mislis kada igrac tj clan hitmen org ubije narucenu metu ne dobije wl a kada ubije ne narucenu metu dobije jel tako?

Koja logika?  :D
CitatElectric Power is everywhere present in unlimited quantities and can drive the world's machinery without the need of coal, oil, gas, or any other of the common fuels!



Pa valjda /naruciubistvo i narucen igrac, kada je ubijen zasto bi hitmen dobio wl? A Ako nije narucen vec ubijen bez varijable NarucenSam(primer) dobija clan hitmena tek onda wl

Daj nam tu komandu gdje dajes givehit tj gdje dajes metu igracu da vidim da li je tu sve dobro.

"They have computers, and they may have other weapons of mass destruction."

CMD:givehit( playerid, params[] ) {
	    if( PlayerInfo[playerid][pMember] == 17 || PlayerInfo[playerid][pLeader] == 17) {
				new IDs;
				if( sscanf( params, "u", IDs ) ) return SendClientMessage( playerid, -1,"/givehit [ ID Igraca/Deo Imena ]");
	        	if( IDs == INVALID_PLAYER_ID ) return SendErrorMessage(playerid, "Pogresan ID!");
				if( PlayerInfo[ IDs ][ pAdmin ] > 0 ) return SendErrorMessage(playerid, "Ne mozes na Admin-u." );
				if( PlayerInfo[ IDs ][ pHelper ] > 0 ) return SendErrorMessage(playerid, "Ne mozes na Helper-u." );
				if( PlayerInfo[ playerid ][ pDatameta ] > 0) return SendErrorMessage(playerid, "Vec si preuzeo metu /gpsoff da iskljucis metu!");
                if( HitmanInfo[ IDs ][ GoChase ] < 999 ) return SendErrorMessage( playerid, "Neko je vec preuzeo metu !");
                
				new Float:X, Float:Y, Float:Z;
				GetPlayerPos( IDs, X, Y, Z );
				SetPlayerCheckpoint( playerid, X, Y, Z, 1 );
				SearchNadji[ playerid ] = IDs;
				format( globalstring, sizeof( globalstring ), "{FFFFFF}* Hitman %s, je preuzeo da ubije: %s (ID:%d), za %d rsd.", ImeIgraca( playerid ), ImeIgraca( IDs ), IDs, PlayerInfo[ IDs ][ pHitmenCena ] );
				SendFamilyMessage(17,0xFF0000FF,globalstring);
				HitmanInfo[ playerid ][ GoChase ] = IDsa;
				HitmanInfo[ IDsa ][ GetChased ] = IDs;
				HitmanInfo[ IDsa ][ GotHit ] = 1;
				PlayerInfo[ playerid ] [ pDatameta ] = 1;
				IDsa = 0;

		}
		else return SendClientMessage( playerid, -1,"Niste u mogucnosti koristiti ovu komandu" );
	return true;
}

Probaj ovako

if(killerid != INVALID_PLAYER_ID && PlayerInfo[ killerid ][ pDatameta ] != 1 && !IsACop(killerid))
	{
		WantedLevel[killerid] += 2;
		SetPlayerCriminal(killerid,255, "Prvostepeno Ubistvo");
	}

"They have computers, and they may have other weapons of mass destruction."