Also nur die 175 Sekunden länger nicht
Beiträge von DerFamer
-
-
if(PlayerInfo[i][pTot] == 1 && pIstTot[i] == 8)//die 8 ändern in die anzahl der minuten die ihr im KH sein wollt
das z.b auf 0 Setzen
-
Reicht es wen ich es auf 0 Setze oder auf 1?
-
175000 Nun.
//E: 22:09:07-22:14:34 Hat es jetzt gedauert
-
Ich bin um 21:54 ins Krankenhaus und glaub so um 22:02 Entlassen worden
-
public TOTTimer()
{
for(new i=0; i<MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pTot] == 1)
{
pIstTot[i] += 1;
}
if(PlayerInfo[i][pTot] == 1 && pIstTot[i] == 8)//die 8 ändern in die anzahl der minuten die ihr im KH sein wollt
{
PlayerInfo[i][pTot] = 0;
pIstTot[i] = 0;
SetPlayerVirtualWorld(i,0);
SetPlayerSpawn(i);
SpawnPlayer(i);
SendClientMessage(i, COLOR_LIGHTGREEN, "Du bist aus dem Krankenhaus entlassen!");
DestroyPickup(TotenKopf[i]);
}
}
}
}Irdendwie werde ich nicht entlassen vom Krankenhaus :(?
-
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
Danke @German_ScripterHD
//E:
SetTimer("TOTTimer",60000,1);
Wie mache ich die Zeit auf 175 Sekunden?
-
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(5897) : warning 219: local variable "pX" shadows a variable at a preceding level
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(5897) : warning 219: local variable "pY" shadows a variable at a preceding level
C:\Windows\Vss\First Person\German-Next-Era-Life-v2.5-0.3x\German Reallife v1.2\gamemodes\German.pwn(5897) : warning 219: local variable "pZ" shadows a variable at a preceding levePlayerInfo[playerid][pTot] = 1;
new Float:pX,Float:pY,Float:pZ; //Fehler Zeile
GetPlayerPos(playerid, pX, pY, pZ);
TotenKopf[playerid] = CreatePickup(1254,1, pX, pY, pZ);
PlayerInfo[playerid][pTx] = pX;
PlayerInfo[playerid][pTy] = pY;
PlayerInfo[playerid][pTz] = pZ; -
@Clou Vielen dank für deine schnelle Antwort!
-
ocmd:sirene(playerid,params[])
{
if(IsACop(playerid)) //Habe ich eingefügt 26 erros warum?
{
if(UCL[GetPlayerVehicleID(playerid)] == 0)
{
new tmpcar = GetPlayerVehicleID(playerid);
if(GetVehicleModel(tmpcar) == 560)
{
sirene[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene1[GetPlayerVehicleID(playerid)] = CreateObject(18646,0,0,0,0,0,0);
sirene2[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene3[GetPlayerVehicleID(playerid)] = CreateObject(19288,0,0,0,0,0,0,100);
sirene4[GetPlayerVehicleID(playerid)] = CreateObject(19292,0,0,0,0,0,0,100);
AttachObjectToVehicle(sirene[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0 ,2.6,0,0,0,0);//Vorne Mitte
AttachObjectToVehicle(sirene1[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.5,-0.2,0.8,2.0,2.0,3.0);//Dach sirene
AttachObjectToVehicle(sirene2[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0.7,2.6,0,0,0,0);//Vorne Licht Beifahrerseite
AttachObjectToVehicle(sirene3[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),-0.7,2.6,0,0,0,0);//Vorne Licht Fahrerseite
AttachObjectToVehicle(sirene4[GetPlayerVehicleID(playerid)],GetPlayerVehicleID(playerid),0,0.9,0.4,0,0,0);//Mittig im Fenster
UCL[GetPlayerVehicleID(playerid)] = 1;
SendClientMessage(playerid,0xFF0000,"Blaulicht eingeschalten!");
return 1;
}
}
else if(UCL[GetPlayerVehicleID(playerid)] == 1)
{
DestroyObject(sirene[GetPlayerVehicleID(playerid)]);
DestroyObject(sirene1[GetPlayerVehicleID(playerid)]);
DestroyObject(sirene2[GetPlayerVehicleID(playerid)]);
DestroyObject(sirene3[GetPlayerVehicleID(playerid)]);
DestroyObject(sirene4[GetPlayerVehicleID(playerid)]);
UCL[GetPlayerVehicleID(playerid)] = 0;
SendClientMessage(playerid,0xFF0000,"Blaulicht ausgeschalten!");
return 1;
}
return 1;
} -
Normalerweiße müsste der User es bezahlen mir wurde es auch abgezogen
-
format(spr,sizeof(spr),"Du wurdest für %d Minuten und einer Geldstrafe von %d$ eingesperrt",WantedLevel[suspect] * 4,WantedLevel[suspect] * 2000);
SendClientMessage(suspect,COLOR_LIGHTBLUE,spr);so meintest du das oder?
-
Hallo ich habe ein Problem wen ich jemand einsperre kommt
format(spr,sizeof(spr),"Du wurdest für %d Minuten und einer Geldstrafe von %d$ eingesperrt",WantedLevel[suspect] * 4,WantedLevel[suspect] * 2000);
woran kann es liegen? ich bezahl selbst die strafe und der User wird aber trotzdem eingesperrt!
Normals sollte der Spieler die Strafe bezahlen und nicht der Polizist
if(strcmp(cmd, "/arrest", true) == 0)
{
if(IsPlayerConnected(playerid))
{
if(gTeam[playerid] == 2 || IsACop(playerid) || PlayerInfo[playerid][pMember] == 12 || PlayerInfo[playerid][pLeader] == 12 || PlayerInfo[playerid][pMember] == 2 || PlayerInfo[playerid][pLeader] == 2 || PlayerInfo[playerid][pMember] == 3 || PlayerInfo[playerid][pLeader] == 3)
{
if(OnDuty[playerid] != 1 && PlayerInfo[playerid][pMember] == 1)
{
SendClientMessage(playerid, COLOR_GREY, " Du bist nicht im Dienst!");
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,6.0,-1589.8398,715.9842,-5.2422) || IsPlayerInRangeOfPoint(playerid,3.0,215.6246,113.8847,999.0156) || IsPlayerInRangeOfPoint(playerid,3.0,1564.6660,-1694.4382,5.8906))
{// Jail spot
new suspect = GetClosestPlayer(playerid);
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "Benutze: /arrest (ID / Name)");
return 1;
}
if(IsACop(suspect))
{
SendClientMessage(playerid, COLOR_GRAD2, " Du kannst keinen Beamten einsperren!");
return 1;
}
if(IsPlayerConnected(suspect))
{
if(GetDistanceBetweenPlayers(playerid,suspect) < 5)
{
GetPlayerName(suspect, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
if(WantedLevel[suspect] < 1)
{
SendClientMessage(playerid, COLOR_GREY, " Der Spieler ist nicht gesucht!");
return 1;
}
GivePlayerMoney(suspect,-WantedLevel[suspect]*750);
GivePlayerMoney(playerid,WantedLevel[suspect]*750);
PlayerInfo[playerid][pGehalt] += WantedLevel[suspect]*2000;
ResetPlayerWeapons(suspect);
if(PlayerInfo[playerid][pMember]==1||PlayerInfo[playerid][pLeader]==1)
{
format(string, sizeof(string), "< < < < LSPD Officer %s hat den Verbrecher %s eingesperrt > > > >", SpielerName(playerid), SpielerName(suspect));
OOCNews(COLOR_RED, string);
}
else if(PlayerInfo[playerid][pMember]==2||PlayerInfo[playerid][pLeader]==2)
{
format(string, sizeof(string), "< < < < FBI Agent %s hat den Verbrecher %s eingesperrt > > > >", SpielerName(playerid), SpielerName(suspect));
OOCNews(COLOR_RED, string);
}
else if(PlayerInfo[playerid][pMember]==3||PlayerInfo[playerid][pLeader]==3)
{
format(string, sizeof(string), "< < < < Soldat %s hat den Verbrecher %s eingesperrt > > > >", SpielerName(playerid), SpielerName(suspect));
OOCNews(COLOR_RED, string);
}
else if(PlayerInfo[playerid][pMember]==22||PlayerInfo[playerid][pLeader]==22)
{
format(string, sizeof(string), "< < < < SWAT Agent %s hat den Verbrecher %s eingesperrt > > > >", SpielerName(playerid), SpielerName(suspect));
OOCNews(COLOR_RED, string);
}
if(LSPDZellen == 0)//zelle1
{
SetPlayerInterior(suspect, 3);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(suspect,227.3844,111.5490,999);
LSPDZellen += 0;
}
if(LSPDZellen == 1)//zelle2
{
SetPlayerInterior(suspect, 3);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(suspect,223.5090,111.4179,999);
LSPDZellen += 0;
}
if(LSPDZellen == 2)//zelle3
{
SetPlayerInterior(suspect, 3);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(suspect,219.5361,111.3571,999);
LSPDZellen += 0;
}
if(LSPDZellen == 3)//Zelle4
{
SetPlayerInterior(suspect, 3);
UnFreezePlayer(playerid);
PlayerCuffed[playerid] = 0;
SetPlayerPos(suspect,215.5814,111.1412,999);
LSPDZellen += 0;
}
PlayerInfo[suspect][pJailTime] = WantedLevel[suspect] * 240;
new spr[100];
format(spr,sizeof(spr),"Du wurdest für %d Minuten und einer Geldstrafe von %d$ eingesperrt",WantedLevel[suspect] * 4,WantedLevel[suspect] * 2000);
SendClientMessage(playerid,COLOR_LIGHTBLUE,spr);
PlayerInfo[suspect][pJailed] = 1;
PlayerInfo[suspect][pArrested] += 1;
SetPlayerInterior(suspect, 10);
SetPlayerFree(suspect,playerid, "Verhaftet");
WantedPoints[suspect] = 0;
WantedLevel[suspect] = 0;
SetPlayerWantedLevel(suspect,0);
}//distance
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Niemand zum Verhaften in deiner Nähe.");
return 1;
}
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du bist kein Beamter !");
return 1;
}
}//not connected
return 1;
}Bisher noch nicht fen fehler gefunden
-
-
[21:46:46] filterscripts = "" (string)
[21:46:46]
[21:46:46] Server Plugins
[21:46:46] --------------
[21:46:46] Loading plugin: streamer
[21:46:46] Failed.
[21:46:46] Loading plugin: Whirlpool
[21:46:46]
[21:46:46] ==================
[21:46:46]
[21:46:46] Whirlpool loaded
[21:46:46]
[21:46:46] ==================
[21:46:46]
[21:46:46] Loaded.
[21:46:46] Loading plugin: audio
[21:46:46]
*** Audio Plugin v0.5 R2 by Incognito loaded ***
[21:46:46] Loaded.
[21:46:46] Loading plugin: crashdetect
[21:46:46] CrashDetect v4.15.1 is OK.
[21:46:46] Loaded.
[21:46:46] Loaded 3 plugins.
[21:46:46]
[21:46:46] Ban list
[21:46:46] --------
[21:46:46] Loaded: samp.ban
[21:46:46]
[21:46:47]
[21:46:47] Filterscripts
[21:46:47] ---------------
[21:46:47] Loaded 0 filterscripts.
[21:46:47] [debug] Run time error 19: "File or function is not found"
[21:46:47] [debug] DestroyDynamicObject
[21:46:47] [debug] CreateDynamicObject
[21:46:47] [debug] SetDynamicObjectMaterial
[21:46:47] [debug] SetDynamicObjectMaterialText
[21:46:47] [debug] Run time error 19: "File or function is not found"
[21:46:47] [debug] DestroyDynamicObject
[21:46:47] [debug] CreateDynamicObject
[21:46:47] [debug] SetDynamicObjectMaterial
[21:46:47] [debug] SetDynamicObjectMaterialText
[21:46:47] Script[gamemodes/German.amx]: Run time error 19: "File or function is not found"
[21:46:47] Number of vehicle models: 0Hab jetzt mal das crasch plugin aktualisiert ...
-
gibts die neue Version schon?
-
-
[12:52:21] filterscripts = "" (string)
[12:52:21]
[12:52:21] Server Plugins
[12:52:21] --------------
[12:52:21] Loading plugin: crashdetect
[12:52:21] Failed.
[12:52:21] Loading plugin: sscanf
[12:52:21]
[12:52:21] ===============================
[12:52:21] sscanf plugin loaded.
[12:52:21] (c) 2009 Alex "Y_Less" Cole
[12:52:21] 0.3d-R2 500 Players "dnee"
[12:52:21] ===============================
[12:52:21] Loaded.
[12:52:21] Loading plugin: streamer
[12:52:21] Failed.
[12:52:21] Loading plugin: nativchecker
[12:52:21] Failed.
[12:52:21] Loading plugin: Whirlpool
[12:52:21]
[12:52:21] ==================
[12:52:21]
[12:52:21] Whirlpool loaded
[12:52:21]
[12:52:21] ==================
[12:52:21]
[12:52:21] Loaded.
[12:52:21] Loaded 2 plugins.
[12:52:21]
[12:52:21] Ban list
[12:52:21] --------
[12:52:21] Loaded: samp.ban
[12:52:21]
[12:52:21]
[12:52:21] Filterscripts
[12:52:21] ---------------
[12:52:21] Loaded 0 filterscripts.
[12:52:21] Script[gamemodes/German.amx]: Run time error 17: "Invalid/unsupported P-code file format"
[12:52:21] Failed to load 'gamemodes/German.amx' script.
[12:52:21] Number of vehicle models: 0 -
-