VIP /TPA DO IGRACA /TPACCEPT

Započeo Potter, Februar 04, 2018, 19:56:15 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 1 gost pregledaju ovu temu.

Detaljan opis problema: Komanda /tpa tj /goto za vipa, znaci kada vip posalje /tpa id da taj igrac mora prihvatiti teleport /tpaccept [id]
ako moze da mi prilagodite hvala unaprijed
MOD JE ATHLONE
Dio skripte: VIP KOMANDE (TPA)------xunder hvala za /vgetcar
Neke slike/video za lakse dobivanje pomoci(neobavezno):
CMD:tpa( playerid, params[ ] ) {
    new Float:pozp[ 3 ], igrac;
    if( PlayerInfo[ playerid ][ xVIPLevel ] >= 1 || PlayerInfo[ playerid ][ xPromoter ] >= 1  ) {

		if( sscanf( params, "u", igrac ) ) return SendUsageMessage( playerid, "/tpa [ ID/Deo imena ]." );
		if( igrac == IPI ) return GRESKA( playerid, "Pogresan ID." );

		if( PlayerInfo[ playerid ][ xHiac ] >= 1 || PlayerInfo[ playerid ][ xHelper ] >= 1 ) { if( !HiacDuty[ playerid ] ) return GRESKA( playerid, "Da bi koristili ovu komandu morate biti HIAC na duznosti" ); }

		if( PlayerInfo[ playerid ][ xHiac ] >= 1 ) { }
		else if( PlayerInfo[ playerid ][ xHelper ] >= 1 ) {
		    if( NaDmEventu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes dok si u DM Zoni." );
			if( NaUtrci[ playerid ] ) return GRESKA( playerid, "Ne mozes dok si na trci." );
            if( PlayerInfo[ igrac ][ xHiac ] >= 1 ) return GRESKA( playerid, "Ne mozes se portati kod Hiaca." );
            if( PoliceDuty[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si na duznosti." );
            if( UzeoOpremu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes se portati dok radis posao ili imas uniformu posla." );
			if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return GRESKA( playerid, "Ne mozes se portati dok imas wanted level." );
			if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return GRESKA( playerid, "Ne mozes se portati dok si u jailu." );
			if( PljackaUToku || ZlataraUToku ) return GRESKA( playerid, "Ne mozes se portati dok je pljacka u toku." );
        }
		else if( PlayerInfo[ playerid ][ xVIPLevel ] >= 1 ) {
		    if( PlayerInfo[ igrac ][ xHelper ] >= 1 ) return GRESKA( playerid, "Ne mozes se portati do GMa." );
		    if( PlayerInfo[ igrac ][ xWanted ] > 0 ) return GRESKA( playerid, "Ne mozes se portati do igraca koj ima WL." );
		    if( NaDmEventu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes dok si u DM Zoni." );
		    if( NaUtrci[ playerid ] ) return GRESKA( playerid, "Ne mozes dok si na trci." );
		    if( PlayerInfo[ igrac ][ xHiac ] >= 1 ) return GRESKA( playerid, "Ne mozes se portati do Hiaca." );
		    if( PoliceDuty[ playerid ] == true ) return GRESKA( playerid, "Ne mozes koristi ovu komandu dok si na duznosti." );
		    if( UzeoOpremu[ playerid ] == true ) return GRESKA( playerid, "Ne mozes se portati dok radis posao ili imas uniformu posla." );
			if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return GRESKA( playerid, "Ne mozes se portati dok imas wanted level." );
			if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return GRESKA( playerid, "Ne mozes se portati dok si u jailu." );
            if( PljackaUToku || ZlataraUToku ) return GRESKA( playerid, "Ne mozes se portati dok je pljacka u toku." );
            if( NaDmEventu[ igrac ] == true ) return GRESKA( playerid, "Ne mozes dok je igrac na DM eventu." );
            if( uInterijeru[ playerid ] != -1 ) return GRESKA( playerid, "Ne mozes da se portas dok si u interijeru.");
            if( uInterijeru[ igrac ] != -1 ) return GRESKA( playerid, "Ne mozes da se portas do igraca koji je u interijeru.");
		}

		GetPlayerPos( igrac, pozp[ 0 ], pozp[ 1 ], pozp[ 2 ] );
		if( PlayerInfo[ playerid ][ xHiac ] < 6 && PlayerInfo[ igrac ][ xHiac ] >= 6 ) return GRESKA( playerid, "Ne mozete se teleportovati do ownera i direktora!" );

		if( GetPlayerState( playerid ) == 2 ) {
			Khalifa_SetVehiclePos( GetPlayerVehicleID( playerid ), pozp[ 0 ]+5, pozp[ 1 ]+5, pozp[ 2 ] );
			SetPlayerInterior( playerid, GetPlayerInterior( igrac ) );
		 	SetPlayerVirtualWorld( playerid, GetPlayerVirtualWorld( igrac ) );
	 	}
		else {
			Khalifa_SetPlayerPos( playerid, pozp[ 0 ]+5, pozp[ 1 ]+5, pozp[ 2 ] );
			SetPlayerInterior( playerid, GetPlayerInterior( igrac ) );
		 	SetPlayerVirtualWorld( playerid, GetPlayerVirtualWorld( igrac ) );
		}

		SendInfoMessage( playerid, "Teleportirani ste do igraca: %s", ImeIgraca( igrac ) );
		SendInfoMessage( igrac, "{FF0000}[VIP] {FFFFFF}%s se teleportovao do vas.", ImeIgraca( playerid ) );

		if( inOrgInt[ igrac ] != -1 ) {
		    inOrgInt[ playerid ] = inOrgInt[ igrac ];
		}

		if( uInterijeru[ igrac ] != -1 ) {
		    uInterijeru[ playerid ] = uInterijeru[ igrac ];
		}
	}
	else return GRESKA( playerid, ""col_chating"You are not authorized." );
	return true;
}
Poslednja Izmena: Februar 05, 2018, 00:37:31 PRE PODNE od Vodka Play
KKKKKKKKKKKKKKKKKKKUUUUUUUUUURRRRRRRRCCCCCCCCCCCEEEEEEEEEEEEEEEENNNNNNNNNNNNNJJJJJJJJJJJJJJJJJJJJEEEEEEEEEEEEEEEEEEE <3

boom
KKKKKKKKKKKKKKKKKKKUUUUUUUUUURRRRRRRRCCCCCCCCCCCEEEEEEEEEEEEEEEENNNNNNNNNNNNNJJJJJJJJJJJJJJJJJJJJEEEEEEEEEEEEEEEEEEE <3

@Łuk@ aj lock ovog, imas bre u nekim modovima idi trazi i samo promeni u sta hos

Eto ti na Skill Arena modu od Terzica tj(Perfect Gaming Mod)





Progress doesn't come from early risers — progress is made by lazy men looking for easier ways to do things. - Robert A. Heinlein