Problem(error/warning): E ovako imam problem sa komandom jetpack nece iako sam admin/gm da se aktivira
Dio skripte: [pawn]YCMD:jetpack(playerid, params[], help)
{
#pragma unused help
#pragma unused params
if(UlogovanProvera[playerid] == 0) return SCM(playerid,-1,"M:RP | "CRVENA"Moras se ulogovati da bi koristio ovu komandu!");
if(PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pGM] >= 1) return SCM(playerid,-1,""SPLAVA"[M:RP] "SIVA"Samo Admini i GMovi!");
if(AdminDuty[playerid] == 0 && GMDuty[playerid] == 0) return SCM(playerid,-1,""CRVENA"[M:RP] "SIVA"Morate biti na admin duznosti!");
SendClientMessage(playerid, -1, ""ZUTA"INFO | "BELA"Uzeli ste jetpack!");
SetPlayerSpecialAction(playerid, SPECIAL_ACTION_USEJETPACK);
return 1;
}[/pawn]
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log):
Slika/video ingame problema(obavezno ako je ingame problem):
find special_action_usejetpack, trbea biti tamo podeseno da moze admin uzeti.
npr ovako
[pawn]// -- Anti JetPack
if( antiCheatSS[ antiJetPackH ] == true ) {
if( PlayerInfo[ playerid ][ xAdmin ] < 1 ) {
if( GetPlayerSpecialAction( playerid ) == SPECIAL_ACTION_USEJETPACK )
OnPlayerCheat( playerid, DETECT_JETPACK_HACK, 0, 0 );[/pawn]
Citat: Sinner.man poslato Maj 05, 2020, 19:03:27 POSLE PODNE
find special_action_usejetpack, trbea biti tamo podeseno da moze admin uzeti.
npr ovako
[pawn]// -- Anti JetPack
if( antiCheatSS[ antiJetPackH ] == true ) {
if( PlayerInfo[ playerid ][ xAdmin ] < 1 ) {
if( GetPlayerSpecialAction( playerid ) == SPECIAL_ACTION_USEJETPACK )
OnPlayerCheat( playerid, DETECT_JETPACK_HACK, 0, 0 );[/pawn]
[pawn]if(GetPlayerSpecialAction(playerid) == SPECIAL_ACTION_USEJETPACK && PlayerInfo[playerid][pAdmin] < 1)
{
SCM(playerid,-1,"[M:RP] "CRVENA"Kikovani ste zbog jet pack hacka!");
Kick(playerid);
return 1;
}[/pawn]
Evo ga i opet nece
Reseno hvala!