include a_samp ist das
Beiträge von Beavis
-
-
das sollte auch nach den Fahrzeugen kommen nicht vorher
-
for(new i=0; i<sizeof(pdcar); i++)SetVehicleNumberPlate(pdcar[i],"LSPD"),SetVehicleToRespawn(lspdcar[i]);
das bei OnGameModeInit rein
so wie es da steht -
da steht doch wie das Tor erstellt ist es ist richtig
er erstellt es mit der normalen Samp objekt definierung und movt es damit auch also Kein fehler -
habs anders gemacht
und es geht auch aber danke -
wiso geht dieser Command nicht so wie er soll?
bcmd:unfall(playerid,params[])
{
if(PI[playerid][pUnfall]==1)
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
new count;
if(PI[i][pMember]==3||PI[i][pLeader]==3)count+=1;
if(count==0)
{
TogglePlayerControllable(playerid,1);
SendClientMessage(playerid,cYellow,"Da kein Feuerwehrmann online ist wurdest du automatisch befreit");
return 1;
}
else
{
new string[128];
format(string, sizeof(string), ">> %s hat nach einem Feuerwehrmann gerufen!", PlayerName(playerid));
if(PI[i][pMember]==3||PI[i][pLeader]==3)SendClientMessage(i, cBlue, string);
SendClientMessage(playerid, cBlue, "Bald ist ein Feuerwehrmann unterwegs zu dir!");
}
}
}
else
{
SendClientMessage(playerid,cRed,"Du hattest doch keinen Unfall");
}
return 1;
}wenn Member 3 on is soll er ne message bekommen das einer hilfe brauch
aber er Spammt mich zu mit den hier obwohl ein member 3 on ist "Da kein Feuerwehrmann online ist wurdest du automatisch befreit" -
dann mach ne abfrage wenn er da einsteigt wenn er nicht zu der fraktion gehört dann werf ihn daraus anders gehts nicht
-
Es hat damit nix zu tun für mich ist es kopiert und dafür bewerte ich es nicht sondern sagen meine Meinung
und was ist das?public OnPlayerConnect()
{
new playerid;
SendClientMessage(playerid, COLOR_BLUE,"Der Server Benutz TheScripter´s Neon System!");
return 1;
}
wenn dann so
public OnPlayerConnect(playerid)
{
SendClientMessage(playerid, COLOR_BLUE,"Der Server Benutz TheScripter´s Neon System!");
return 1;
} -
dann musst du den command anpassen, das der Frakmember da rein kommt
-
dann erklär mir Bitte das
vergleich das mit deinen
Das ist von MSK
Spoiler anzeigen public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
{Spoiler anzeigen if(dialogid == neondialog)
{
if(response)
{
if(listitem == 0)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon", CreateObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid, "neon1", CreateObject(18648,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon1"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon Installiert");
}
if(listitem == 1)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon2", CreateObject(18647,0,0,0,0,0,0));
SetPVarInt(playerid, "neon3", CreateObject(18647,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon2"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon3"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon Installiert");Spoiler anzeigen }
if(listitem == 2)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon4", CreateObject(18649,0,0,0,0,0,0));
SetPVarInt(playerid, "neon5", CreateObject(18649,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon4"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon5"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon Installiert");Spoiler anzeigen }
if(listitem == 3)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon6", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "neon7", CreateObject(18652,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon6"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon7"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon Installiert");Spoiler anzeigen }
if(listitem == 4)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon8", CreateObject(18651,0,0,0,0,0,0));
SetPVarInt(playerid, "neon9", CreateObject(18651,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon8"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon9"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon Installiert");Spoiler anzeigen }
if(listitem == 5)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon10", CreateObject(18650,0,0,0,0,0,0));
SetPVarInt(playerid, "neon11", CreateObject(18650,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon10"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon11"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon Installiert");Spoiler anzeigen }
if(listitem == 6)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon12", CreateObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid, "neon13", CreateObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid, "neon14", CreateObject(18649,0,0,0,0,0,0));
SetPVarInt(playerid, "neon15", CreateObject(18649,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon12"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon13"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon14"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon15"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon Installiert");Spoiler anzeigen }
if(listitem == 7)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon16", CreateObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid, "neon17", CreateObject(18648,0,0,0,0,0,0));
SetPVarInt(playerid, "neon18", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "neon19", CreateObject(18652,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon16"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon17"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon18"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon19"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon zainstalowany");Spoiler anzeigen }
if(listitem == 8)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon20", CreateObject(18647,0,0,0,0,0,0));
SetPVarInt(playerid, "neon21", CreateObject(18647,0,0,0,0,0,0));
SetPVarInt(playerid, "neon22", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "neon23", CreateObject(18652,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon20"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon21"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon22"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon23"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon zainstalowany");Spoiler anzeigen }
if(listitem == 9)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon24", CreateObject(18647,0,0,0,0,0,0));
SetPVarInt(playerid, "neon25", CreateObject(18647,0,0,0,0,0,0));
SetPVarInt(playerid, "neon26", CreateObject(18650,0,0,0,0,0,0));
SetPVarInt(playerid, "neon27", CreateObject(18650,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon24"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon25"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon26"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon27"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon Installiert");Spoiler anzeigen }
if(listitem == 10)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon28", CreateObject(18649,0,0,0,0,0,0));
SetPVarInt(playerid, "neon29", CreateObject(18649,0,0,0,0,0,0));
SetPVarInt(playerid, "neon30", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "neon31", CreateObject(18652,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon28"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon29"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon30"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon31"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon Installiert");Spoiler anzeigen }
if(listitem == 11)
{
SetPVarInt(playerid, "Status", 1);
SetPVarInt(playerid, "neon32", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "neon33", CreateObject(18652,0,0,0,0,0,0));
SetPVarInt(playerid, "neon34", CreateObject(18650,0,0,0,0,0,0));
SetPVarInt(playerid, "neon35", CreateObject(18650,0,0,0,0,0,0));
AttachObjectToVehicle(GetPVarInt(playerid, "neon32"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon33"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon34"), GetPlayerVehicleID(playerid), -0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
AttachObjectToVehicle(GetPVarInt(playerid, "neon35"), GetPlayerVehicleID(playerid), 0.8, 0.0, -0.70, 0.0, 0.0, 0.0);
SendClientMessage(playerid, 0xFFFFFFAA, "Neon Installiert");Spoiler anzeigen }
if(listitem == 12)
{
DestroyObject(GetPVarInt(playerid, "neon")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon1")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon2")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon3"));
DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon4")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon5")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon6")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon7"));
DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon8")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon9")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon10")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon11"));
DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon12")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon13")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon14")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon15"));
DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon16")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon17")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon18")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon19"));
DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon20")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon21")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon22")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon23"));
DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon24")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon25")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon26")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon27"));
DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon28")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon29")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon30")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon31"));
DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon32")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon33")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon34")); DeletePVar(playerid, "Status"); DestroyObject(GetPVarInt(playerid, "neon35"));
}
}
}
return 0;
}komisch die sind 1zu1 Gleich
-
dann das car via Serverstart abschließen
wenn es dann vergessen wird aufzumachen, dann kommt nen user halt ohne probs wieder rein -
-
Ganz ehrlich
genau das selbe gibt es hier schon ich kann drum wetten das es ne Kopie ist
Ich such das mal raus und wenns das selbe ist dann Facepalm und das hier
#pragma tabsize 0
Ein zeichen für unsauberes einrücken -
Wiso fragst du nicht bei OnPlayerState...
ab ob der Player in der Fraktion ist?
wenn du es abschließt, dann kann es nen normaler player doch wieder öffnen, es sei denn du machst dir ein carsystem -
versuch mal das
for(new i=0; i<sizeof(pdcar); i++)SetVehicleNumberPlate(pdcar[i],"LSPD"),SetVehicleToRespawn(lspdcar[i]);
sollte so gehen -
wozu ein string?
der ist sinnlos
so kann das auch sein
SetVehicleNumberPlate(pdcar[i],"LSPD");
du nimmst nur unnötig reccourcen ein und einfacher gehts so um platz zu sparen:for(new i=0; i<sizeof(pdcar); i++)SetVehicleNumberPlate(pdcar[i],"LSPD");
-
mach mal am ende wo die 5 ist 5.0 hin und teste es dann denn das was du da hast ist richtig
-
mach das mal so:
for(new i=0; i<sizeof(lspdcar); i++)
{
SetVehicleNumberPlate(i,"LSPD");
}
wenn nicht dann wieder statt i lspdcar[i] machen -
Register Login system würd ich niemals als Filterscript nutzen, da es nur Probleme bereiten kann
Für Objekte etc is nen Filterscript schon sinnvoll -
ueberweisid[playerid]=inputtext;
wo hast du pawn gelernt?
seit wann ist eine Zahl ein string?