Einfach eine neue Tabelle erstellen, 32 mögliche einträge machen und auf NULL stellen.
Beiträge von Carl Ohaia
-
-
Im ordner heißt sie sampir.sql
-
Kann man das auch f[r SAMP benutzen?
-
C
Alles anzeigenpublic OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp("/eventpickup", cmdtext)) { if(IsPlayerAdmin(playerid)) //Deine Admin Variable { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); HealPickup = CreateDynamicPickup(1240, 1, x, y, z, -1,-1,-1, 100.0); SendClientMessage(playerid, -1, "Eventpickup {00FF00}erfolgreich{FFFFFF} erstellt"); return 1; } } if(!strcmp("/eventpickup", cmdtext)) { if(IsPlayerAdmin(playerid)) //Deine Admin Variable { DestroyDynamicPickup(HealPickup); SendClientMessage(playerid, -1, "Eventpickup {00FF00}erfolgreich {FFFFFF}gelöscht."); return 1; } } return 0; }
Nach dem ersten Befehl hast du die letze Klammer vergessen.
So hab ich es jetzt. Ist das mit der Variable so richtig?^^
Code
Alles anzeigenpublic OnPlayerCommandText(playerid, cmdtext[]) { if(!strcmp("/eventpickup", cmdtext)) { if(IsPlayerAdmin(playerid)[pAdmin] ) //Deine Admin Variable { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); HealPickup = CreateDynamicPickup(1240, 1, x, y, z, -1,-1,-1, 100.0); SendClientMessage(playerid, -1, "Eventpickup {00FF00}erfolgreich{FFFFFF} erstellt"); return 1; } }
##edit
30079) : error 029: invalid expression, assumed zero
D:\script\NLR\gamemodes\editbyalex.pwn(30079) : error 029: invalid expression, assumed zero
D:\script\NLR\gamemodes\editbyalex.pwn(30083) : error 001: expected token: ")", but found "["
D:\script\NLR\gamemodes\editbyalex.pwn(30083) : error 029: invalid expression, assumed zero
D:\script\NLR\gamemodes\editbyalex.pwn(30083) : warning 215: expression has no effect
D:\script\NLR\gamemodes\editbyalex.pwn(30083) : error 001: expected token: ";", but found "]"
D:\script\NLR\gamemodes\editbyalex.pwn(30083) : fatal error 107: too many error messages on one line
Meine Erros. Alle im bereich des pickups
@[LnD]JustMe.77 -
Ungetested:
public OnPlayerCommandText(playerid, cmdtext[]){ if(!strcmp("/eventpickup", cmdtext)) { if(IsPlayerAdmin(playerid)) //Deine Admin Variable { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); HealPickup = CreateDynamicPickup(1240, 1, x, y, z, -1,-1,-1, 100.0); SendClientMessage(playerid, -1, "Eventpickup {00FF00}erfolgreich{FFFFFF} erstellt"); return 1; } if(!strcmp("/eventpickup", cmdtext)) { if(IsPlayerAdmin(playerid)) //Deine Admin Variable { DestroyDynamicPickup(HealPickup); SendClientMessage(playerid, -1, "Eventpickup {00FF00}erfolgreich {FFFFFF}gelöscht."); return 1; } } } return 0;}
D:\script\NLR\gamemodes\editbyalex.pwn(30079) : error 029: invalid expression, assumed zero
D:\script\NLR\gamemodes\editbyalex.pwn(30079) : error 029: invalid expression, assumed zero
D:\script\NLR\gamemodes\editbyalex.pwn(30083) : error 001: expected token: ")", but found "["
D:\script\NLR\gamemodes\editbyalex.pwn(30083) : error 029: invalid expression, assumed zero
D:\script\NLR\gamemodes\editbyalex.pwn(30083) : warning 215: expression has no effect
D:\script\NLR\gamemodes\editbyalex.pwn(30083) : error 001: expected token: ";", but found "] -
Ungetested @Carl Ohaia
new HealPickup;CMD:eventpickup(playerid,params[]){ if(IsPlayerAdmin(playerid)) //Deine Admin Variable { new Float:x, Float:y, Float:z; GetPlayerPos(playerid, x, y, z); HealPickup = CreateDynamicPickup(1240, 1, x, y, z, -1,-1,-1, 100.0); SendClientMessage(playerid, -1, "Eventpickup {00FF00}erfolgreich{FFFFFF} erstellt"); } return 1;}CMD:destroyeventpickup(playerid,params[]){ if(IsPlayerAdmin(playerid)) //Deine Admin Variable { DestroyDynamicPickup(HealPickup); SendClientMessage(playerid, -1, "Eventpickup {00FF00}erfolgreich {FFFFFF}gelöscht."); } return 1;}
Kannst du mir das in strcmp umschreiben?^^ Ich kenn mich damit nicht aus
-
Huhu, Will ein Healpickup für einen Admin ab Rang 3 machen.
Das habe ich unter Onplayerpickuppickup.Codeif(pickupid == HealPickup) { if(HealPickup == 1) { SetPlayerHealth(playerid, 100); return 1; } }
Nur weiß ich leider nicht wie ich den Befehl gestalten soll. Der admin soll /eventpickup eingeben. Dann soll das Herz Pickup dort spawnen wo der Admin steht. Und jeder User kann durch das Pickup laufen und kriegt 100 HP. Jedoch sollte der Admin es mit /destroyeventpickup destroyen Können.
Kann mir jemand den Befehl kurz machen? Ich kriegs nicht hin :d
-
Hätte da nur eine Map die ich hier mal veröffentlich habe:
Raumschiff in San AndreasWir haben gestern erst gestartet. Das heißt noch ziemlich am Anfang.
-
Hey. Unser Projekt sucht derzeit einen Scripter. Wir sind derzeit 4 Leute im Team und noch den Server am Aufbauen.
Kannst dich gerne mal auf unseren Teamspeak 3 Server blicken lassen.
5.230.140.41:1337MFG
Das NLR Server -Team -
Ich nehme Teil!!!!!111elf!!!!
-
Los Santos Roleplay ist der Server von Darius und ACer (LSR) Deutscher Server
Los Santos Roleplay ist der größte Server weltweit(Russenserver abgesehen) [LSRP] Amerikanischer/Englischer Server
MFG
CARL -
Den Connectkick habe ich bereits rausgenommen.
Wenn ich es ausklammere stürzt mein Compiler ab.
Kann mir jemand per Anydesk oder Teamviewer helfen? ich habe keine ahnung.
-
Moin habe ein Problem. Wenn ich auf meinen Server joine bekomme ich einen hwdbann.
Wenn ich den HWD Ban ausklammere, bekomm ich jedoch 26. Errosif(PlayerInfo[i][pAdminOnDuty] == 1){ I_SetPlayerArmour(i, 2000.0); I_SetPlayerHealth(i, 200.0);}
new Float:health;
GetPlayerHealth(i,health);
if(health > 180.0 && PlayerInfo[i][pAdminOnDuty] == 0){I_SetPlayerHealth(i, 180.0);}
new sendername[MAX_PLAYER_NAME];
GetPlayerName(i, sendername, sizeof(sendername));
if(GetPlayerSpecialAction(i) == SPECIAL_ACTION_USEJETPACK && PlayerInfo[i][pAdmin] < 2000)
{
format(string, sizeof(string), "SERVERGUARD: %s wurde vom Server gebannt. Grund: Jetpack-Hack", sendername);
SendClientMessageToAll(COLOR_LIGHTRED, string);
SendClientMessage(i,COLOR_LIGHTRED,"Du wurdest gebannt: Permban. Grund: Jetpack-Hack. Erstelle jetzte einen Screenshot mit der Taste F8.");
new hwd[256];
gpci(i, hwd, sizeof hwd);
format(string, sizeof string, "INSERT INTO `hwdban` (`Grund`, `Admin`, `Spieler`, `BanDatum`) VALUES ('%s', 'Jetpack Hack', 'System', '%s', '%d')", hwd,sendername,gettime());
self_mysql_queryEx(string);
SetTimerEx("ConnectKick", 400,0,"i",i);
}
if(AntiAFKTime[i] > 0) {
new plrIP[16];
GetPlayerIp(i, plrIP, sizeof(plrIP));
if(IsPlayerNPC(i) || gPlayerLogged[i] == 0 || strcmp(plrIP, "80.82.222.105", false) == 0 || PlayerInfo[i][pAdmin] == 2000 && AFKKick[i] == 0) {
AntiAFKTimer[i] = 0;
AntiAFKTime[i] = 0;
AntiAFKCode[i] = 0;
TextDrawHideForPlayer(i, AntiAFK[i]);
}
AntiAFKTime[i] += 1;
if(AntiAFKTime[i] >= 60) {
SendClientMessage(i, COLOR_LIGHTRED, "[Anti-AFK] Du wurdest vom AFK-System gekickt.");
AntiAFKTimer[i] = 0;
AntiAFKTime[i] = 0;
// Kick(i);
if(Spectating[i] == -1 || PlayerCuffed[i] == 0) {
if(AFKKick[i] == 1) {
SendClientMessage(AFKChecker[i], COLOR_LIGHTBLUE,"Spieler hat Anwesenheit nicht bestätigt und wurde gekickt!");
SendClientMessage(i, COLOR_LIGHTBLUE,"Du hast die Anwesenheit nicht bestätigt und wurdest somit gekickt!");
TogglePlayerControllable(i, 0);
Kick(i);
}
else {
//TogglePlayerControllable(i, 0);
//AFKModus[i] = 1;
SendClientMessage(AFKChecker[i], COLOR_LIGHTBLUE, "Spieler hat Anwesenheit nicht bestätigt und wurde gekickt versetzt");
AFKChecker[i] = -1;
TextDrawHideForPlayer(i, AntiAFK[i]);
GetPlayerName(i, playername, sizeof(playername));
Kick(i);
}}}}
if(PlayerToPoint(2.0, i, 1173.1418,-1323.1293,15.3958) || PlayerToPoint(2.0, i, -2656.8435,639.3749,14.4531) || PlayerToPoint(2.0, i, 1613.2483,1816.0555,10.8203)) { GameTextForPlayer(i, "~w~Versicherung: /krankenkasse ~w~Krankheitsheiler: /healme", 2000, 1); }
else if(PlayerToPoint(7.0, i, 380.8262,-190.9529,1000.6328)) { GameTextForPlayer(i, "~y~Willkommen im ~r~Donutladen ~g~/buydonut", 2000, 1); }
else if(PlayerToPoint(2.0, i, 1223.4307,-1738.5736,13.5918)) { GameTextForPlayer(i, "~y~Benutze ~g~/buylicenses um Scheine zu kaufen", 2000, 1); }
else if(PlayerToPoint(2.0, i, 911.2007,-1235.1824,17.2109)) { GameTextForPlayer(i, "~w~Hier kannst du dein Auto~n~freikaufen,~n~falls es abgeschleppt wurde:~n~~g~/freecar", 2000, 3); }
else if(PlayerToPoint(2.0, i, -372.9898,-1428.4983,25.7266)) { GameTextForPlayer(i, "~y~Benutze ~g~/gangunjail, ~y~/gangjail", 2000, 1); }
else if(PlayerToPoint(2.0, i, 2310.0469,-8.3689,26.7422)) { GameTextForPlayer(i, "~w~Um in das Jobmenu zu gelangen, benutze ~y~/jobs", 2000, 1); }
else if(PlayerToPoint(2.0, i, 766.0630,13.2840,1000.7028)) { GameTextForPlayer(i, "~y~Um einen neuen Fightingstyle zu erlernen, benutze ~r~/fightingstyle", 2000, 3); }
else if(PlayerToPoint(2.0, i, -2237.0854,130.2281,1035.4141)) { GameTextForPlayer(i, "~y~Um dir ein neues Handy zu kaufen, benutze ~r~/handys ~y~Zum Ausrauben ~g~/ausrauben", 2000, 1); }
else if(IsAtATM(i)) { GameTextForPlayer(i, "~y~Willkommen beim ~r~ATM ~g~/atm ~y~Zum Aufbrechen ~g~/aufbrechen", 2000, 1); }
else if(PlayerToPoint(3.0,i,-100.3825,-25.0385,1000.7188)) { GameTextForPlayer(i,"~y~Gib ~r~/shop ~y~ein, um dir etwas zu kaufen",2000,1); }
else if(PlayerToPoint(1.0, i, 503.5941,-6.6935,1000.6719) || PlayerToPoint(1.0,i,505.6358,-79.8694,998.9609)) { GameTextForPlayer(i,"~y~Gib ~r~/playdice ~y~ein, um im Casino zuspielen",2000,1); }
else if(PlayerToPoint(2.0,i,362.5672,173.8237,1008.3828)) { GameTextForPlayer(i, "~y~Willkommen in der ~r~Bank ~g~/bank", 2000, 1); }
else if(PlayerToPoint(3.0, i,1209.7849,-1724.6807,13.5632)) { GameTextForPlayer(i, "~g~Um mit dem Fuehrerschein zu beginnen, benutze ~y~/fsauto", 2000, 1); }
else if(PlayerToPoint(80, i,-30.875, -88.9609, 1004.53)) { GameTextForPlayer(i, "~y~Gib ~r~/buy ~y~ein, um dir etwas zu kaufen", 2000, 1); }
else if(PlayerToPoint(2.0, i,203.8202,-44.0331,1001.8047)) { GameTextForPlayer(i, "~y~Gib ~r~/geiselnahme ~y~ein, um Hartmut als geisel zunehmen", 2000, 1); }
else if(PlayerToPoint(2.0,i,376.5769,-68.2079,1001.5151) || PlayerToPoint(2.0,i,369.9709,-6.9479,1001.8589) || PlayerToPoint(2.0,i,374.6569,-119.6447,1001.4995) || PlayerToPoint(4.0,i,448.4754,-84.0636,999.5547)) { GameTextForPlayer(i, "Nutze /menu um dir Essen zu kaufen", 2000, 1); }
else if(PlayerToPoint(2.0,i,1199.1437,-911.5316,48.0625)) { GameTextForPlayer(i, "~y~Gib ~r~/drink ~y~ein, um dir etwas zu kaufen", 2000, 1); }
for(new z = 0; z < sizeof(ZollSystemInfo); z++){if(PlayerToPoint(10.0, i, ZollSystemInfo[z][ZSObjectPosX], ZollSystemInfo[z][ZSObjectPosY], ZollSystemInfo[z][ZSObjectPosZ])) { GameTextForPlayer(i, "~y~Gib ~g~/zoll ~y~ein um den Zoll zu oeffnen", 2000, 3); }}
if(GetPlayerSkin(i) == 0 || GetPlayerSkin(i) < 0 || GetPlayerSkin(i) == -1 || GetPlayerSkin(i) == 74)
{ SetPlayerSkin(i,101); }
if(TransportTime[i] > 0){
if(TransportTime[i] >= 16){
TransportTime[i] = 1;
if(TransportDriver[i] < 999){
if(IsPlayerConnected(TransportDriver[i])){
TransportCost[i] += TransportValue[TransportDriver[i]];
TransportCost[TransportDriver[i]] = TransportCost[i];
}
}
}
TransportTime[i] += 1;
format(string, sizeof(string), "~r~%d ~w~: ~g~$%d",TransportTime[i],TransportCost[i]);
GameTextForPlayer(i, string, 15000, 6);
}
if(PlayerInfo[i][pJailed] > 0 && PlayerInfo[i][pJailed] != 5){
if(PlayerInfo[i][pJailTime] > 0 && WantLawyer[i] == 0)
{
PlayerInfo[i][pJailTime] -= 1;
}
if(PlayerInfo[i][pJailTime] <= 0 && WantLawyer[i] == 0){
PlayerInfo[i][pJailTime] = 0;
if(PlayerInfo[i][pJailed] == 1){ //Freilassung SFPD
SetPlayerInterior(i, 0);
SetPlayerPos(i,-1605.3224,713.3950,13.4961);
}
else if(PlayerInfo[i][pJailed] == 2){ //Freilassung Prison
SetPlayerPos(i, 1799.5938,-1578.0750,14.0743);
SetPlayerFacingAngle(i, 0);
CP[i] = 0;
PlayerInfo[i][pJailed] = 0;
SetPlayerSkin(i, PlayerInfo[i][pChar]);
SetPlayerInterior(i, 0);
}
else if(PlayerInfo[i][pJailed] == 3){ // Freilassung LSPD
SetPlayerInterior(i, 0);
SetPlayerPos(i, 1552.8363,-1675.6121,16.1953);
}
SendClientMessage(i, COLOR_GRAD1," Du hast deine Schuld gegenüber der Gesellschaft beglichen.");
format(string, sizeof(string), "~g~Freiheit~n~~w~Werde ein besserer Mensch");
GameTextForPlayer(i, string, 5000, 1); PlayerInfo[i][pJailed] = 0; SetPlayerWorldBounds(i, 20000.0000,-20000.0000,20000.0000,-20000.0000); ClearCrime(i); SetPlayerToTeamColor(i); TogglePlayerControllable(i, 1);
}
}
if(UsedFind[i] > 0){UsedFind[i] -= 1;}
if(Eisgekauft[i] > 0){Eisgekauft[i] -= 1;}
if(WantLawyer[i] > 0){
CallLawyer[i] = 111;
if(WantLawyer[i] == 1){SendClientMessage(i, COLOR_LIGHTRED, "Möchtest du einen Rechtsvertreter? (Benutze yes oder no)");}
WantLawyer[i] += 1;
if(WantLawyer[i] == 8){SendClientMessage(i, COLOR_LIGHTRED, "Möchtest du einen Rechtsvertreter? (Benutze yes oder no)");}
if(WantLawyer[i] == 15){SendClientMessage(i, COLOR_LIGHTRED, "Möchtest du einen Rechtsvertreter? (Benutze yes oder no)");}
if(WantLawyer[i] == 20){SendClientMessage(i, COLOR_LIGHTRED, " Es steht kein Rechtsvertreter zur Verfügung!"); WantLawyer[i] = 0; CallLawyer[i] = 0;}
}
if(PlayerTazeTime[i] > 0) {
PlayerTazeTime[i] += 1;
if(PlayerTazeTime[i] == 15){PlayerTazeTime[i] = 0; }
else { new Float:angle; GetPlayerFacingAngle(i, angle); SetPlayerFacingAngle(i, angle + 90); }
}
if(GetPlayerDrunkLevel(i) >= 2000){
if(GetPlayerDrunkLevel(i) >= 30000) { ApplyAnimation(i,"CRACK","crckdeth2",4.0, 1,0, 0, 0, 0); }
else if(GetPlayerDrunkLevel(i) >= 29900 && GetPlayerDrunkLevel(i) <= 30000) { SetPlayerSpecialAction(i, 0); ClearAnimations(i); } }
if(PlayerStoned[i] >= 5) {
if(PlayerStonedTime[i] > 0) { ApplyAnimation(i, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0); PlayerStonedTime[i] -= 1; }
PlayerStoned[i] += 1;
if(PlayerStoned[i] == 15) {
PlayerStoned[i] = 2;
new Float:angle;
GetPlayerFacingAngle(i, angle);
if(IsPlayerInAnyVehicle(i)) {
if(GetPlayerState(i) == 2) { SetVehicleZAngle(GetPlayerVehicleID(i), angle + 25); }
}
else { SetPlayerFacingAngle(i, angle + 90); }
}}
if(PlayerInfo[i][pCarTime] != 0){
if(PlayerInfo[i][pCarTime] > 0) { PlayerInfo[i][pCarTime] -= 1; }
if(PlayerInfo[i][pCarTime] < 0) { PlayerInfo[i][pCarTime] = 0; }
}
if(JobFreeze[i] > 0){JobFreeze[i] -= 1;}
if(Weedkaufen[i] > 0){Weedkaufen[i] -= 1;}
if(Logintime[i] >= 0){Logintime[i] += 1;}
if(HotdogTime[i] > 0){HotdogTime[i] -= 1;}
if(PortedTimer[i] > 0){PortedTimer[i] -= 1;}
if(FindTime[i] > 0) {
if(FindTime[i] == FindTimePoints[i]) {
FindTime[i] = 0;
FindTimePoints[i] = 0;
DisablePlayerCheckpoint(i);
GameTextForPlayer(i, "~r~Redmarker weg", 2500, 1);
}
else {
format(string, sizeof(string), "%d", FindTimePoints[i] - FindTime[i]);
GameTextForPlayer(i, string, 1500, 6);
FindTime[i] += 1;
}}
if(JulianTime[i] > 0) {
if(JulianTime[i] == JulianPoints[i]) {
JulianTime[i] = 0;
JulianPoints[i] = 0;
}
else {
format(string, sizeof(string), "%d", JulianPoints[i] - JulianTime[i]);
GameTextForPlayer(i, string, 1500, 6);
JulianTime[i] += 1;
}}
if(AntiSpamTime[i] > 0){
AntiSpamTime[i] -= 1;
if(AntiSpamTime[i] == 0){
AntiSpamWarns[i] = 0;
}}
if(TaxiCallTime[i] > 0) {
if(TaxiAccepted[i] < 999){
if(IsPlayerConnected(TaxiAccepted[i])){
GetPlayerPos(TaxiAccepted[i], X, Y, Z); SetPlayerCheckpoint(i, X, Y, Z, 5);
}}}
if(BusCallTime[i] > 0){
if(BusAccepted[i] < 999){
if(IsPlayerConnected(BusAccepted[i])){
GetPlayerPos(BusAccepted[i], X, Y, Z); SetPlayerCheckpoint(i, X, Y, Z, 5);
}}}
if(MedicAccepted[i] != -1){GetPlayerPos(MedicAccepted[i], X, Y, Z); SetPlayerCheckpoint(i, X, Y, Z, 5); CP[i] = 71;}
if(WhelAccepted[i] != -1){GetPlayerPos(WhelAccepted[i], X, Y, Z); SetPlayerCheckpoint(i, X, Y, Z, 5); CP[i] = 200;}
if(MechanicCallTime[i] > 0){
if(MechanicCallTime[i] == 90){
MechanicCallTime[i] = 0; DisablePlayerCheckpoint(i); GameTextForPlayer(i, "~r~Redmarker weg", 2500, 1);
}
else {
format(string, sizeof(string), "%d", 90 - MechanicCallTime[i]); GameTextForPlayer(i, string, 1500, 6); MechanicCallTime[i] += 1;
}}
if(AntiRobTimer[i] > 0){AntiRobTimer[i] -= 1;}
if(PlayerCuffed[i] == 1){
if(PlayerCuffedTime[i] <= 0) {
TogglePlayerControllable(i, 1); PlayerCuffed[i] = 0; PlayerCuffedTime[i] = 0; PlayerTazeTime[i] = 1; SetPlayerSpecialAction(i, 0); ClearAnimations(i);
}
else{
PlayerCuffedTime[i] -= 1;
}}
if(PlayerCuffed[i] == 2){
if(PlayerCuffedTime[i] <= 0){
GameTextForPlayer(i, "~g~Du hast deine Handschellen geknackt, schnell fluechte!", 2500, 3);
TogglePlayerControllable(i, 1); PlayerCuffed[i] = 0; PlayerCuffedTime[i] = 0; PlayerTied[i] = 0; SetPlayerSpecialAction(i, 0); ClearAnimations(i);
}
else{
PlayerCuffedTime[i] -= 1;
}}
if(StartingPaintballRound == 1 && AnnouncedPaintballRound == 0){
AnnouncedPaintballRound = 1;
if(PlayerPaintballing[i] == 1)
{
SendClientMessage(i, COLOR_YELLOW, "Paintball Match wird für 15 Sekunden hinausgezögert, um mehr Spieler zu errreichen.");
}
}
if(StartingKartRound == 1 && AnnouncedKartRound == 0){
AnnouncedKartRound = 1;
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
SendClientMessage(i, COLOR_YELLOW, "Kart Rennen wird für 15 Sekunden hinausgezögert, um mehr Spieler zu errreichen.");
}
}
if(EndingKartRound == 1){
if(PlayerKarting[i] != 0 && PlayerInKart[i] != 0)
{
DisablePlayerCheckpoint(i);
CP[i] = 0;
}}}}
return 1;
}Das ist mein Code um den HWD Ban herum
-
Moin habe ein Problem. Wenn ich auf meinen Server joine bekomme ich einen hwdbann.
Code
Alles anzeigen// Check beim beim Connecten new str[256], name[MAX_PLAYER_NAME], hwd[128]; gpci(playerid, hwd, sizeof hwd); GetPlayerName(playerid, name, sizeof name); mysql_real_escape_string(name, name); format(str, sizeof str, "SELECT * FROM `hwdban` WHERE `Hardware`='%s'", hwd); mysql_query(str); mysql_store_result(); /*if(mysql_num_rows()) { //Hardware Ban ist aktiv ShowPlayerMarkers(400); SetSpawnInfo(playerid,0,299,0,0,0,0,0,0,0,0,0,0); LoginTimer[playerid] = SetTimerEx("julianistgeil",20000,0,"i",playerid); TogglePlayerControllable(playerid,0); SetTimerEx("SetConnectHWDBan",200,0,"i",playerid); StopAudioStreamForPlayer(playerid); }*/ new VAR = 0,TextString[123]; new BanHammer[128], BanReason[128], BPZeit; SetPlayerColor(playerid, COLOR_GRAD2); format(TextString, sizeof(TextString), "SELECT * FROM `bannedplayers` WHERE `Name`='%s'", playername); self_mysql_queryEx(TextString); mysql_store_result(MySQLConnection); if(mysql_num_rows(MySQLConnection) != 0) { mysql_fetch_row_format(TextString); new val[256]; self_mysql_get_field("Reason", val); strmid(BanReason, val, 0, strlen(val), 255); self_mysql_get_field("Hammer", val); strmid(BanHammer, val, 0, strlen(val), 255); self_mysql_get_field("Time", val); BPZeit = strval( val ); if(BPZeit != -1) { if(BPZeit > Time()) { VAR = 1; } else { format(TextString, sizeof(TextString), "DELETE FROM `bannedplayers` WHERE `Name`='%s'", playername); self_mysql_queryEx(TextString); VAR = 0; } } else { VAR = 1; } if(VAR == 1) { if(BPZeit == -1) { ShowPlayerMarkers(400); SetSpawnInfo(playerid,0,299,0,0,0,0,0,0,0,0,0,0); LoginTimer[playerid] = SetTimerEx("julianistgeil",20000,0,"i",playerid); TogglePlayerControllable(playerid,0); SetTimerEx("SetConnectBan",200,0,"i",playerid); StopAudioStreamForPlayer(playerid); return 1; } else { ShowPlayerMarkers(400); SetSpawnInfo(playerid,0,299,0,0,0,0,0,0,0,0,0,0); LoginTimer[playerid] = SetTimerEx("julianistgeil",20000,0,"i",playerid); TogglePlayerControllable(playerid,0); SetTimerEx("SetConnectTimeBan",200,0,"i",playerid); StopAudioStreamForPlayer(playerid); return 1; } } } return 1; }
-
Hey. Ich suche die originale LSR Datenbank. Würde auch dafür bezahlen.
MFG
CARl -
zHGx-XrCL-ak
Weg danke! -
LSR,IR,SOM,GTA DYNAMICS
uvm.
Habt viel Auswahlmfg
carl -
Huhu hab ein kleines Problem. Wollte heute mal das BSRP Script testen.
Habe meine Script daten eingetragen und nun kommt wenn ich ingame gehe das hier
Code
Alles anzeigen--------- Loaded log file: "server_log.txt". ---------- SA-MP Dedicated Server ---------------------- v0.3.7-R2, (C)2005-2015 SA-MP Team [16:16:51] mapname = "San Andreas" (string) [16:16:51] language = "" (string) [16:16:51] [16:16:51] Server Plugins [16:16:51] -------------- [16:16:51] Loading plugin: mysql.so [16:16:51] > MySQL plugin R5 successfully loaded. [16:16:51] Loaded. [16:16:51] Loading plugin: streamer.so [16:16:51] *** Streamer Plugin v2.7.5 by Incognito loaded *** [16:16:51] Loaded. [16:16:51] Loaded 2 plugins. [16:16:51] [16:16:51] Filterscripts [16:16:51] --------------- [16:16:51] Loaded 0 filterscripts. [16:16:51] <-| [MYSQL] Verbindung zur Datenbank wurde erfolgreich hergestellt! [16:16:51] Es wurden erfolgreich [19] Häuser geladen! [16:16:51] [connection] 87.98.241.207:40829 requests connection cookie. [16:16:51] [connection] 87.98.241.207:59277 requests connection cookie. [16:16:51] [connection] 87.98.241.207:37286 requests connection cookie. [16:16:51] [connection] 87.98.241.207:43976 requests connection cookie. [16:16:51] [connection] 87.98.241.207:39243 requests connection cookie. [16:16:51] [connection] 87.98.241.207:49080 requests connection cookie. [16:16:51] [connection] 87.98.241.207:40455 requests connection cookie. [16:16:51] [connection] 87.98.241.207:39022 requests connection cookie. [16:16:51] [connection] 87.98.241.207:48020 requests connection cookie. [16:16:51] [connection] 87.98.241.207:48216 requests connection cookie. [16:16:51] [connection] 87.98.241.207:54151 requests connection cookie. [16:16:51] [connection] 87.98.241.207:46732 requests connection cookie. [16:16:51] [connection] 87.98.241.207:50708 requests connection cookie. [16:16:51] [connection] 87.98.241.207:47786 requests connection cookie. [16:16:51] [connection] 87.98.241.207:35094 requests connection cookie. [16:16:51] [connection] 87.98.241.207:55233 requests connection cookie. [16:16:51] [connection] 87.98.241.207:40105 requests connection cookie. [16:16:51] [connection] 87.98.241.207:40112 requests connection cookie. [16:16:51] [connection] 87.98.241.207:33489 requests connection cookie. [16:16:51] [connection] 87.98.241.207:41986 requests connection cookie. [16:16:51] Es wurden erfolgreich [6829] Objekte geladen! [16:16:51] ---------------------------------------- [16:16:51] Bayside-Roleplay 1.0 RC5 geladen - by Carl-Scripts.de. [16:16:51] Copyright 2011-2015 by Carl & sHoOTi. [16:16:51] ------------------------------------------ [16:16:51] [16:16:51] Number of vehicle models: 70 [16:16:51] [connection] 87.98.241.207:45436 requests connection cookie. [16:16:51] [connection] 87.98.241.207:34187 requests connection cookie. [16:16:51] [connection] 87.98.241.207:40674 requests connection cookie. [16:16:51] [connection] 87.98.241.207:60928 requests connection cookie. [16:16:51] [connection] 87.98.241.207:53211 requests connection cookie. [16:16:52] [connection] incoming connection: 87.98.241.207:40829 id: 0 [16:16:52] [connection] incoming connection: 87.98.241.207:59277 id: 1 [16:16:52] [connection] incoming connection: 87.98.241.207:37286 id: 2 [16:16:52] [connection] incoming connection: 87.98.241.207:43976 id: 3 [16:16:52] [connection] incoming connection: 87.98.241.207:40455 id: 4 [16:16:52] [connection] incoming connection: 87.98.241.207:39243 id: 5 [16:16:52] [connection] incoming connection: 87.98.241.207:48216 id: 6 [16:16:52] [connection] incoming connection: 87.98.241.207:49080 id: 7 [16:16:52] [connection] incoming connection: 87.98.241.207:54151 id: 8 [16:16:52] [connection] incoming connection: 87.98.241.207:48020 id: 9 [16:16:52] [connection] incoming connection: 87.98.241.207:39022 id: 10 [16:16:52] [connection] incoming connection: 87.98.241.207:46732 id: 11 [16:16:52] [connection] incoming connection: 87.98.241.207:50708 id: 12 [16:16:52] [connection] incoming connection: 87.98.241.207:47786 id: 13 [16:16:52] [connection] incoming connection: 87.98.241.207:55233 id: 14 [16:16:52] [connection] incoming connection: 87.98.241.207:40105 id: 15 [16:16:52] [connection] incoming connection: 87.98.241.207:35094 id: 16 [16:16:52] [connection] incoming connection: 87.98.241.207:40112 id: 17 [16:16:52] [connection] incoming connection: 87.98.241.207:33489 id: 18 [16:16:52] [connection] incoming connection: 87.98.241.207:41986 id: 19 [16:16:52] [connection] incoming connection: 87.98.241.207:45436 id: 20 [16:16:52] [connection] incoming connection: 87.98.241.207:40674 id: 21 [16:16:52] [connection] incoming connection: 87.98.241.207:34187 id: 22 [16:16:52] [connection] incoming connection: 87.98.241.207:60928 id: 23 [16:16:52] [connection] incoming connection: 87.98.241.207:53211 id: 24 [16:16:52] [npc:join] Mike has joined the server (0:87.98.241.207) [16:16:56] [connection] 87.98.241.207:51685 requests connection cookie. [16:16:56] [connection] 87.98.241.207:58572 requests connection cookie. [16:16:56] [connection] 87.98.241.207:50804 requests connection cookie. [16:16:56] [connection] 87.98.241.207:60907 requests connection cookie. [16:16:56] [connection] 87.98.241.207:56127 requests connection cookie. [16:16:56] [connection] 87.98.241.207:33950 requests connection cookie. [16:16:56] [connection] 87.98.241.207:40115 requests connection cookie. [16:16:56] [connection] 87.98.241.207:46000 requests connection cookie. [16:16:56] [connection] 87.98.241.207:50167 requests connection cookie. [16:16:56] [connection] 87.98.241.207:56779 requests connection cookie. [16:16:56] [connection] 87.98.241.207:40167 requests connection cookie. [16:16:56] [connection] 87.98.241.207:40340 requests connection cookie. [16:16:56] [connection] 87.98.241.207:47179 requests connection cookie. [16:16:56] [connection] 87.98.241.207:48979 requests connection cookie. [16:16:56] [connection] 87.98.241.207:57472 requests connection cookie. [16:16:56] [connection] 87.98.241.207:41986 requests connection cookie. [16:16:56] [connection] 87.98.241.207:55058 requests connection cookie. [16:16:56] '0' Gangautos wurden geladen & erstellt. [16:16:56] [connection] 87.98.241.207:59767 requests connection cookie. [16:16:56] [connection] 87.98.241.207:38601 requests connection cookie. [16:16:56] [connection] 87.98.241.207:55927 requests connection cookie. [16:16:56] [connection] 87.98.241.207:43818 requests connection cookie. [16:16:56] [connection] 87.98.241.207:38124 requests connection cookie. [16:16:56] [connection] 87.98.241.207:34397 requests connection cookie. [16:16:56] [connection] 87.98.241.207:55031 requests connection cookie. [16:16:56] [connection] 87.98.241.207:43059 requests connection cookie. [16:16:56] [connection] 87.98.241.207:51991 requests connection cookie. [16:16:56] [connection] 87.98.241.207:37731 requests connection cookie. [16:16:56] [connection] 87.98.241.207:57146 requests connection cookie. [16:16:56] [connection] 87.98.241.207:35695 requests connection cookie. [16:16:56] [connection] 87.98.241.207:43738 requests connection cookie. [16:16:57] [connection] incoming connection: 87.98.241.207:58572 id: 1 [16:16:57] [connection] incoming connection: 87.98.241.207:51685 id: 2 [16:16:57] [connection] incoming connection: 87.98.241.207:60907 id: 3 [16:16:57] [connection] incoming connection: 87.98.241.207:50804 id: 4 [16:16:57] [connection] incoming connection: 87.98.241.207:56127 id: 5 [16:16:57] [connection] incoming connection: 87.98.241.207:33950 id: 6 [16:16:57] [connection] incoming connection: 87.98.241.207:40115 id: 7 [16:16:57] [connection] incoming connection: 87.98.241.207:56779 id: 8 [16:16:57] [connection] incoming connection: 87.98.241.207:46000 id: 9 [16:16:57] [connection] incoming connection: 87.98.241.207:50167 id: 10 [16:16:57] [connection] incoming connection: 87.98.241.207:40167 id: 11 [16:16:57] [connection] incoming connection: 87.98.241.207:48979 id: 12 [16:16:57] [connection] incoming connection: 87.98.241.207:47179 id: 13 [16:16:57] [connection] incoming connection: 87.98.241.207:40340 id: 14 [16:16:57] [connection] incoming connection: 87.98.241.207:57472 id: 15 [16:16:57] [connection] incoming connection: 87.98.241.207:41986 id: 16 [16:16:57] [connection] incoming connection: 87.98.241.207:55058 id: 17 [16:16:57] [connection] incoming connection: 87.98.241.207:59767 id: 18 [16:16:57] [connection] incoming connection: 87.98.241.207:43818 id: 19 [16:16:57] [connection] incoming connection: 87.98.241.207:38601 id: 20 [16:16:57] [connection] incoming connection: 87.98.241.207:55927 id: 21 [16:16:57] [connection] incoming connection: 87.98.241.207:38124 id: 22 [16:16:57] [connection] incoming connection: 87.98.241.207:34397 id: 23 [16:16:57] [connection] incoming connection: 87.98.241.207:43059 id: 24 [16:16:57] [connection] incoming connection: 87.98.241.207:55031 id: 25 [16:16:57] [connection] incoming connection: 87.98.241.207:37731 id: 26 [16:16:57] [connection] incoming connection: 87.98.241.207:51991 id: 27 [16:16:57] [connection] incoming connection: 87.98.241.207:57146 id: 28 [16:16:57] [connection] incoming connection: 87.98.241.207:43738 id: 29 [16:16:57] [connection] incoming connection: 87.98.241.207:35695 id: 30 [16:17:27] [connection] 146.60.213.89:53582 requests connection cookie. [16:17:28] [connection] incoming connection: 146.60.213.89:53582 id: 1 [16:17:28] [join] CarlOhaia has joined the server (1:146.60.213.89)
Alles Gut. Jedoch wird nix in der Datenbank gespeichert. Jemand eine AHNUNG woran es liegt?^^
MFG
CARL -
Key bekommen. Alles funktioniert!
-
Guten Abend,
das gewinnspiel ist nun Vorbei. Ich hatte aufgrund der zunehmenden Zahl an Mitstreitern nochmal 5 Keys dazu gepackt also nicht wundern.
3x Commandojack
• @T4125Gamer
• @Alexz
• @Selina_Harper2x International Snooker
• @FloliBiceps
• @H4rd_B4se3x Pahelika Secret Legends
• @Pytroxis
• @ultradeader
• @ExXoTicC1x Dungeon Hero
• @Sen_Brox2x XCOM: Enemy Down
• @Bluescreen
• @Impressiv_2x Elements: Souls of Fire
• @Drasko
• @FineTime1x Gold Rush! Classic
• @Carl_Grimes1x Stronghold 3 Gold
• @CrowleyAn alle gewinner: Bitte meldet euch bis nächste woche Sonntag per PN mit dem richtigem Spiel. Ihr erhaltet dann den Key.
Für alle die dieses mal nichts gewonnen haben, beim nächsten mal ist bestimmt mehr glück dabei
PS: Herzlichen Glückwunsch an alle Gewinner
Mit freundlichen Grüßen
XonarZDir ist ein Fehler unterlaufen. bei Gold Rush! Classic steht Carl Grimes. Jedoch war dieser Letzte Aktivität
20. Dezember 2013 Online. Zufällig war ich es ja