Hallo Leute .
Ich habe ein problem Das hier will nicht gehen und ich weiß nicht warum kann mir da einer helfen
Code
if(newkeys & KEY_YES)
{
if(!isPlayerAnAdmin(playerid,1))
{
for(new a=0;a<MAX_ADMINVEHS;a++)
{
new Float:x,Float:y,Float:z;
if(ImTutorial[playerid] != 0)return SendClientMessage(playerid,GRAU,"Du kannst keine Befehle nutzen,da du im Tutorial bist.");
if(GetPVarInt(playerid,"Eingeloggt") == 0)return SendClientMessage(playerid,GRAU,"Du bist nicht eingeloggt!");
if(Spieler[playerid][pAWAYFROMKEYBOARD] == 1)return SendClientMessage(playerid,WRONGCMD,"Du bist im AFK-Modus und kannst somit keine Befehle nutzen."),SendClientMessage(playerid,WRONGCMD,"BENUTZE: /back");
if(Spieler[playerid][pInPrison] == 1)return SendClientMessage(playerid,GRAU,"Du bist im Prison.");
if(Spieler[playerid][pFriedhof] == 1)return SendClientMessage(playerid,GRAU,"Du bist Tot.");
if(Spieler[playerid][pDeath] == 1)return SendClientMessage(playerid,GRAU,"Du bist verletzt.");
if(Spieler[playerid][pJailed] != 0)return SendClientMessage(playerid,GRAU,"Du bist im Gefängnis.");
if(Spieler[playerid][pTazerd] == 1)return SendClientMessage(playerid,GRAU,"Du bist K.O/getazert.");
if(Spieler[playerid][pCuffed] == 1)return SendClientMessage(playerid,GRAU,"Du bist gefesselt.");
GetVehiclePos(adminmobile[a],x,y,z);
GetVehicleParamsEx(adminmobile[a],engine,lights,alarm,doors,bonnet,boot,objective);
if(IsPlayerInRangeOfPoint(playerid,3.0,x,y,z))
{
if(lockedveh[adminmobile[a]] == false)
{
SetVehicleParamsEx(adminmobile[a],engine,lights,alarm,VEHICLE_PARAMS_ON,bonnet,boot,objective);
lockedveh[adminmobile[a]] = true;
TextDrawShowForPlayer(playerid,InfoSign);
PlayerTextDrawSetString(playerid,INFOdraw[playerid][2],"~w~Adminmobil ~r~abgeschlossen");
PlayerTextDrawShow(playerid,INFOdraw[playerid][2]);
SetTimerEx("HideInfoBox",2000,0,"i",playerid);
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid,ServerSounds[17],0.0,0.0,0.0);
return 1;
}
else if(lockedveh[adminmobile[a]] == true)
{
SetVehicleParamsEx(adminmobile[a],engine,lights,alarm,VEHICLE_PARAMS_OFF,bonnet,boot,objective);
lockedveh[adminmobile[a]] = false;
TextDrawShowForPlayer(playerid,InfoSign);
PlayerTextDrawSetString(playerid,INFOdraw[playerid][2],"~w~Adminmobil ~g~aufgeschlossen");
PlayerTextDrawShow(playerid,INFOdraw[playerid][2]);
SetTimerEx("HideInfoBox",2000,0,"i",playerid);
StopAudioStreamForPlayer(playerid);
PlayAudioStreamForPlayer(playerid,ServerSounds[17],0.0,0.0,0.0);
return 1;
}
}
}
}
Alles anzeigen
bitte um hilfe