Problem oko komande jetpack

Započeo LuGiCH, Februar 21, 2019, 15:43:36 POSLE PODNE

prethodna tema - sledeća tema

0 članova i 2 gostiju pregledaju ovu temu.

Problem(error/warning): komandu mogu da koriste i tek registrovani igraci
Dio skripte: CMD:jp( playerid, params[] ) {
if( PlayerInfo[ playerid ][ xAdmin ] >= 1 || PlayerInfo[ playerid ][ xVIPLevel ] >= 5 ) {
if( PlayerInfo[ playerid ][ xVIPLevel ] >= 5 )
if( NaUtrci[ playerid ] ) return SendErrorMessage( playerid, "Ne mozes dok si na trci." );
  if( NaDmEventu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristiti ovu komandu dok si u DM Zoni." );
    if( PoliceDuty[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok si na duznosti." );
    if( UzeoOpremu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok radis posao ili imas uniformu posla." );
if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok imas wanted level." );
if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok si u jailu." );
}
new Float:Pos[ 3 ];
if( GetPlayerSpecialAction( playerid ) == SPECIAL_ACTION_USEJETPACK ) {
GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
SetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ]+2 );
SendInfoMessage( playerid, "Skinuo si jetpack te je unisten." );
}
else {
    SetPlayerSpecialAction( playerid, SPECIAL_ACTION_USEJETPACK);
    SendInfoMessage( playerid, "Uzeo si JetPack.");
    }
return 1;
}

Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log)://
Slika/video ingame problema(obavezno ako je ingame problem)://
Poslednja Izmena: Februar 21, 2019, 15:46:20 POSLE PODNE od LuGiCH

CMD:jp( playerid, params[] ) {
   if( PlayerInfo[ playerid ][ xVIPLevel ] < 5 )
   if( NaUtrci[ playerid ] ) return SendErrorMessage( playerid, "Ne mozes dok si na trci." );
     if( NaDmEventu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristiti ovu komandu dok si u DM Zoni." );
      if( PoliceDuty[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok si na duznosti." );
      if( UzeoOpremu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok radis posao ili imas uniformu posla." );
   if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok imas wanted level." );
   if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok si u jailu." );
}
   new Float:Pos[ 3 ];
   if( GetPlayerSpecialAction( playerid ) == SPECIAL_ACTION_USEJETPACK ) {
      GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
      SetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ]+2 );
      SendInfoMessage( playerid, "Skinuo si jetpack te je unisten." );
   }
   else {
       SetPlayerSpecialAction( playerid, SPECIAL_ACTION_USEJETPACK);
       SendInfoMessage( playerid, "Uzeo si JetPack.");
      }
   return 1;
}

Citat: Agency poslato Februar 21, 2019, 16:21:41 POSLE PODNE
CMD:jp( playerid, params[] ) {
   if( PlayerInfo[ playerid ][ xVIPLevel ] < 5 )
   if( NaUtrci[ playerid ] ) return SendErrorMessage( playerid, "Ne mozes dok si na trci." );
     if( NaDmEventu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristiti ovu komandu dok si u DM Zoni." );
      if( PoliceDuty[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok si na duznosti." );
      if( UzeoOpremu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok radis posao ili imas uniformu posla." );
   if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok imas wanted level." );
   if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok si u jailu." );
}
   new Float:Pos[ 3 ];
   if( GetPlayerSpecialAction( playerid ) == SPECIAL_ACTION_USEJETPACK ) {
      GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
      SetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ]+2 );
      SendInfoMessage( playerid, "Skinuo si jetpack te je unisten." );
   }
   else {
       SetPlayerSpecialAction( playerid, SPECIAL_ACTION_USEJETPACK);
       SendInfoMessage( playerid, "Uzeo si JetPack.");
      }
   return 1;
}
Daj ne pricaj gluposti

Cemu dvije provere za VIP ?


Evo ovako lafe


CMD:jp( playerid, params[] ) {
if( PlayerInfo[ playerid ][ xAdmin ] >= 1 || PlayerInfo[ playerid ][ xVIPLevel ] >= 5 ) {

if( NaUtrci[ playerid ] ) return SendErrorMessage( playerid, "Ne mozes dok si na trci." );
  if( NaDmEventu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristiti ovu komandu dok si u DM Zoni." );
    if( PoliceDuty[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok si na duznosti." );
    if( UzeoOpremu[ playerid ] == true ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok radis posao ili imas uniformu posla." );
if( PlayerInfo[ playerid ][ xWanted ] != 0 ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok imas wanted level." );
if( PlayerInfo[ playerid ][ xZatvor ] != 0 ) return SendErrorMessage( playerid, "Ne mozes koristi ovu komandu dok si u jailu." );
new Float:Pos[ 3 ];
if( GetPlayerSpecialAction( playerid ) == SPECIAL_ACTION_USEJETPACK ) {
GetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ] );
SetPlayerPos( playerid, Pos[ 0 ], Pos[ 1 ], Pos[ 2 ]+2 );
SendInfoMessage( playerid, "Skinuo si jetpack te je unisten." );
}
else {
    SetPlayerSpecialAction( playerid, SPECIAL_ACTION_USEJETPACK);
    SendInfoMessage( playerid, "Uzeo si JetPack.");
    }
} else return SendErrorMessage(playerid, "Nisi u mogucnosti koristiti ovu komandu");
return 1;
}