Dio skripte: Dole
Debug iz server_log(ukoliko je u pitanju crashanje servera - crashdetect log): //
Slika/video ingame problema(obavezno ako je ingame problem): EVO SLIKA https://imgur.com/0BKAGIT
if(newkeys & KEY_SECONDARY_ATTACK) {
for(new i = 0; i < MAX_STRELJANA; i++) {
if(StreljanaInfo != 0) {
if(IsPlayerInRangeOfPoint(playerid,3.0,StreljanaInfo,StreljanaInfo,StreljanaInfo)) {
SetPVarInt(playerid, PVAR_ZA_AC, 1);
Streljana = i;
SetPlayerVirtualWorld(playerid,i+150);
SetPlayerInterior(playerid,1);
SetPlayerPos(playerid,286.1490,-40.6444,1001.5156);
}
}
}
if(Streljana > -1) {
if(IsPlayerInRangeOfPoint(playerid, 3.0, 286.1490,-40.6444,1001.5156)) {
SetPlayerPos(playerid, StreljanaInfo[Streljana],StreljanaInfo[Streljana],StreljanaInfo[Streljana]);
SetPlayerInterior(playerid,0);
SetPlayerVirtualWorld(playerid,0);
Streljana = -1;
SetPVarInt(playerid, PVAR_ZA_AC, 0);
}
}
} SetPVarInt(playerid,PVAR_ZA_AC,0); //ovo je ispod onplayerconnect#define PVAR_ZA_AC "SB_Trenira" //pvar kojim izbegavate prijavljivanje anticheata za port/weapon hack