Beiträge von DerFamer
-
-
-
-
if(killerid != INVALID_PLAYER_ID && !IsACop(killerid) && !IstInGangFight(killerid))
{
WantedPoints[killerid] += 2;
SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
SetPlayerWantedLevel(killerid, WantedPoints[killerid]);
}Meinst du so?
-
ZITAT: In Setplayerwantedlevel ersetzt ma getwantedlevel durch dein WantedPoints[killerid]
Wie soll ich den satz verstehn? Ich kapier den nicht was du damit sagen willst?
-
es kommt nichts wen ich jemand töte keine Wanteds obwohl es sein sollte
-
Function IsACop(playerid)
{
if(IsPlayerConnected(playerid))
{
new leader = PlayerInfo[playerid][pLeader];
new member = PlayerInfo[playerid][pMember];
if(member==1 || member==2 || member==22 || member==3)
{
return 1;
}
else if(leader==1 || leader==2 || leader==22 || leader==3)
{
return 1;
}
}
return 0;
}Function IstInGangFight(playerid)
{
new TempZone = GetPlayerFightzone(playerid);
if(TempZone != -255){ // In Zone
if(FightSystem[TempZone][fsFightTime] && FightSystem[TempZone][fsAttackFaction] != -255){ // Wenn Gegner nicht gleich -255 ist
return 1;
}
}
return 1;
}Function SetPlayerCriminal(playerid,declare,reason[])
{
if(IsPlayerConnected(playerid))
{
PlayerInfo[playerid][pCrimes] += 1;
new turned[MAX_PLAYER_NAME];
new turner[MAX_PLAYER_NAME];
new turnmes[128];
new wantedmes[128];
new wlevel;
strmid(PlayerCrime[playerid][pAccusedof], reason, 0, strlen(reason), 255);
GetPlayerName(playerid, turned, sizeof(turned));
if (declare == 255)
{
format(turner, sizeof(turner), "Unbekannt");
strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255);
}
else
{
if(IsPlayerConnected(declare))
{
GetPlayerName(declare, turner, sizeof(turner));
strmid(PlayerCrime[playerid][pVictim], turner, 0, strlen(turner), 255);
strmid(PlayerCrime[declare][pBplayer], turned, 0, strlen(turned), 255);
strmid(PlayerCrime[declare][pAccusing], reason, 0, strlen(reason), 255);
}
}
WantedLevel[playerid]++;
wlevel = WantedLevel[playerid];
format(turnmes, sizeof(turnmes), "Du hast ein Verbrechen begangen ( %s ). Zeuge: %s.",reason,turner);
SendClientMessage(playerid, COLOR_LIGHTRED, turnmes);
format(wantedmes, sizeof(wantedmes), "Wanteds: %d", wlevel);
SendClientMessage(playerid, COLOR_YELLOW, wantedmes);
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(IsACop(i))
{
format(cbjstore, sizeof(turnmes), "HQ: Alle Einheiten: Reporter: %s",turner);
SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);
format(cbjstore, sizeof(turnmes), "HQ: Verbrechen: %s, Gesuchter: %s",reason,turned);
SendClientMessage(i, TEAM_BLUE_COLOR, cbjstore);
}
}
}
}
} -
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrers
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);Löschen!
-
if(killerid != INVALID_PLAYER_ID && !IsACop(killerid) && !IstInGangFight(killerid))
{
WantedPoints[killerid] += 2;
SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(playerid)+2);
}Hay warum bekomme ich keine wanteds wen ich jemand töte?
-
if(killerid != INVALID_PLAYER_ID && !IsACop(killerid) && !IstInGangFight(killerid))
{
WantedPoints[killerid] += 2;
SetPlayerCriminal(killerid,255, "Vorsätzlicher Mord");
SetPlayerWantedLevel(killerid,GetPlayerWantedLevel(playerid)+2);
}@Jeffry
//E: Alter Code Funkt wiso bekomm ich keine Wanteds wen ich jemand töte? -
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(58232) : error 036: empty statement
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(58232) : error 017: undefined symbol "i"
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(58232) : fatal error 107: too many error messages on one lineNimmt er trd nicht ?
-
new vehicle_id[10];
vehicle_id[0] = CreateVehicle(516,1362.0999756,-1635.4000244,13.3000002,270.0000000,1,1,15); //Previon
vehicle_id[1]= CreateVehicle(516,1361.8994141,-1658.6992188,13.3000002,270.0000000,1,1,15); //Previon
vehicle_id[2] = CreateVehicle(516,1362.0996094,-1651.0000000,13.3000002,270.0000000,1,1,15); //Previon
vehicle_id[3] = CreateVehicle(516,1362.1992188,-1643.1992188,13.3000002,270.0000000,1,1,15); //Previon
vehicle_id[4] = CreateVehicle(516,1373.5999756,-1635.1999512,13.3000002,90.0000000,1,1,15); //Previon
vehicle_id[5] = CreateVehicle(516,1374.1999512,-1658.9000244,13.3000002,90.0000000,1,1,15); //Previon
vehicle_id[6] = CreateVehicle(516,1373.9000244,-1642.8000488,13.3000002,90.0000000,1,1,15); //Previon
vehicle_id[7] = CreateVehicle(516,1374.0996094,-1654.3994141,13.3000002,90.0000000,1,1,15); //Previon
for(new i = 0;i<sizeof(vehicleid[i]);i++){
vehicle3Dtext[vehicle_id[i]] = Create3DTextLabel("Fahrschule", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(vehicle3Dtext[vehicle_id[i]],vehicle_id[i], 0.0, 0.0, 2.0);
}C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(13430) : error 017: undefined symbol "vehicleid"
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(13430) : warning 215: expression has no effect
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(13430) : error 001: expected token: ";", but found "]"
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(13430) : error 029: invalid expression, assumed zero
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(13430) : fatal error 107: too many error messages on one line-_- wiso nur
-
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(13430) : error 036: empty statement
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(13430) : error 017: undefined symbol "i"
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(13430) : fatal error 107: too many error messages on one line -
vehicle3Dtext[vehicle_id] = Create3DTextLabel("Fahrschule", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1); //Fahrschule wen man lesen kann Bruder
-
public OnGameModeInit()
{
vehicle_id = CreateVehicle(516,1362.0999756,-1635.4000244,13.3000002,270.0000000,1,1,15); //Previon
vehicle_id = CreateVehicle(516,1361.8994141,-1658.6992188,13.3000002,270.0000000,1,1,15); //Previon
vehicle_id = CreateVehicle(516,1362.0996094,-1651.0000000,13.3000002,270.0000000,1,1,15); //Previon
vehicle_id = CreateVehicle(516,1362.1992188,-1643.1992188,13.3000002,270.0000000,1,1,15); //Previon
vehicle_id = CreateVehicle(516,1373.5999756,-1635.1999512,13.3000002,90.0000000,1,1,15); //Previon
vehicle_id = CreateVehicle(516,1374.1999512,-1658.9000244,13.3000002,90.0000000,1,1,15); //Previon
vehicle_id = CreateVehicle(516,1373.9000244,-1642.8000488,13.3000002,90.0000000,1,1,15); //Previon
vehicle_id = CreateVehicle(516,1374.0996094,-1654.3994141,13.3000002,90.0000000,1,1,15); //Previon
vehicle3Dtext[vehicle_id] = Create3DTextLabel("Fahrschule", 0xFF0000AA, 0.0, 0.0, 0.0, 50.0, 0, 1);
Attach3DTextLabelToVehicle(vehicle3Dtext[vehicle_id],vehicle_id, 0.0, 0.0, 2.0);Hallo wen ich mich einlogge bleibt mein Spiel hängen warum?
-
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(38915) : error 033: array must be indexed (variable "result")
Der Typ will mich verarschen heute^^
der mag das nicht nehmen
//E: Behoben
-
Hallo,
ich habe ein Problem es klappt alles aber der Grund wird nicht angezeigt warum?
if(strcmp(cmd, "/prison", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /prison [ID/Name] [Minuten] [Grund]");
return 1;
}
new playa;
new money;
new result;
playa = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
money = strval(tmp);
result = strval(tmp);
if (PlayerInfo[playerid][pAdmin] >= 1 || PlayerInfo[playerid][pSupporter] >= 1)
{
if(IsPlayerConnected(playa))
{
if(playa != INVALID_PLAYER_ID)
{
GetPlayerName(playa, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), "Du hast %s zum Prison teleportiert.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTRED, string);
format(string, sizeof(string), "Du wurdest von %s zum Prison teleportiert.", sendername);
SendClientMessage(playa, COLOR_LIGHTRED, string);
ResetPlayerWeapons(playa);
WantedPoints[playa] = 0;
new all[250];
format(all,sizeof(all),"%s wurde von %s für %d Minuten zum Prison teleportiert. Grund : %s",SpielerName(playa),SpielerName(playerid),money*1,result);
SendClientMessageToAll(COLOR_RED,all);
PlayerInfo[playa][pJailed] = 1;
PlayerInfo[playa][pJailTime] = money*1;
SetPlayerInterior(playa, 1);
SetPlayerVirtualWorld(playerid, 1);
SetPlayerPos(playa, 2144.1804,1632.0344,993.5761);
format(string, sizeof(string), "Du wurdest für %d Minuten zum Prison teleportiert.", money);
SendClientMessage(playa, COLOR_LIGHTBLUE, string);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, "Du bist nicht befugt.");
}
}
return 1;
} -
-1631.49512,688.35559,14.09787,3,0 //.00000,0.00000,270.50000 //Danach das einsetzet verstehe
-
else if(IsACop(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,15,1572.16016, 658.79889, 6.90220))
{
MoveObject(FBITor,-1572.16016, 658.79889,6.90220,0.00000,0.00000, 90.000,3);
SetTimer("CloseFBI",5000,0);
}
}
else if(IsACop(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,15,-1701.42346, 687.67249, 24.75240))
{
MoveObject(FBITor1,-1701.42346, 687.67249,24.75240,0.00000,0.00000,270.13831,3);
SetTimer("CloseFBI1",5000,0);
}
}
else if(IsACop(playerid))
{
if(IsPlayerInRangeOfPoint(playerid,15,-1631.49512, 688.35559, 8.70930))
{
MoveObject(FBITor2,-1631.49512,688.35559,14.09787,0.00000,0.00000,270.50000,3);
SetTimer("CloseFBI2",5000,0);
}
}das mag mich nicht mehr^^ nein klappt nicht
-
das ist Richtig.
Habe nur dir Root Geändert habe das angepasst beim map Editor wie es sich öffnen sol :l>
//CreateDynamicObject(968, -1572.16016, 658.79889, 6.90220, 0.00000, 0.00000, 90.00000); //FBI Schranke Unten Offen
//CreateDynamicObject(968, -1701.42346, 687.67249, 24.75240, 0.00000, 0.00000, 270.13831); //FBI Schranke Oben Offen
FBITor = CreateObject(968, -1572.16016, 658.79889, 6.90220, 0.00000, 90.00000, 90.40604); //FBI Schranke Unten
FBITor1 = CreateObject(968, -1701.42346, 687.67249, 24.75240, 0.00000, 90.00000, 270.13831); //FBI Schranke Oben
FBITor2 = CreateObject(10184, -1631.49512, 688.35559, 8.70930, 0.00000, 0.00000, 270.50000); //FBI Garagen Tor