Ahh ich habs, danke für euere hilfe
Beiträge von Sigi.
-
-
Rebron das geht nicht ich habs doch gesagt, villt kann man nur bestimmte anzahl von objekten löschen?
-
Function ist bei mir public
das liegt nicht daran, davor hats ja funktioniert nur aufeinmal jetz nicht...
-
Ja hier kannst du das soger sehen
Function OnPlayerConnect(playerid)
{//BSN NEU
RemoveBuildingForPlayer(playerid, 5858, 1214.1484, -913.4453, 43.0547, 0.25);
RemoveBuildingForPlayer(playerid, 1294, 1198.7969, -933.1250, 46.4297, 0.25);
RemoveBuildingForPlayer(playerid, 1522, 1199.9688, -917.6406, 42.0234, 0.25);
RemoveBuildingForPlayer(playerid, 5844, 1206.1406, -900.9766, 42.1094, 0.25);
RemoveBuildingForPlayer(playerid, 6010, 1214.1484, -913.4453, 43.0547, 0.25);
RemoveBuildingForPlayer(playerid, 5742, 1197.3203, -899.2109, 45.0938, 0.25);//NEU NOOBSPAWN
RemoveBuildingForPlayer(playerid, 6048, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 6130, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 6131, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 6194, 1116.6250, -1542.9063, 22.4688, 0.25);
RemoveBuildingForPlayer(playerid, 6048, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 6130, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 6131, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 6255, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 6051, 1110.3281, -1489.0938, 18.9922, 0.25);
RemoveBuildingForPlayer(playerid, 6255, 1117.5859, -1490.0078, 32.7188, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1117.6094, -1536.9766, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1111.5625, -1533.9609, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1105.6016, -1531.1563, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 1297, 1191.1328, -1551.9844, 15.9297, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1190.2578, -1545.6016, 12.6641, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1137.9297, -1537.0625, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1143.7891, -1534.7031, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1148.6016, -1532.2578, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1097.4766, -1523.9766, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1093.4219, -1519.8281, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1089.5781, -1515.7891, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1087.1953, -1510.4922, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1084.9688, -1504.4219, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1101.1406, -1527.9688, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1128.7344, -1518.4922, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1111.2578, -1512.3594, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 3586, 1128.9688, -1502.0234, 18.2969, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1077.8594, -1499.8672, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1083.6719, -1499.4922, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1106.4375, -1501.3750, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1134.0781, -1500.3750, 22.2813, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1123.2500, -1500.5313, 22.2813, 0.25);
RemoveBuildingForPlayer(playerid, 6051, 1110.3281, -1489.0938, 18.9922, 0.25);
RemoveBuildingForPlayer(playerid, 3586, 1129.0078, -1476.7188, 18.2891, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1124.3672, -1476.9844, 22.2813, 0.25);
RemoveBuildingForPlayer(playerid, 712, 1133.2266, -1476.2266, 22.2813, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1144.3984, -1512.7891, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1152.3828, -1502.5391, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1153.5391, -1529.8047, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1157.8203, -1525.4844, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1161.3281, -1521.5781, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1165.1563, -1517.2109, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1167.7813, -1513.1797, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 1231, 1183.5469, -1520.1484, 15.1953, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1169.1641, -1509.3359, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 647, 1170.8047, -1503.5547, 30.9688, 0.25);
RemoveBuildingForPlayer(playerid, 1297, 1191.1328, -1521.1328, 15.9297, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1190.2578, -1503.3906, 12.6641, 0.25);
RemoveBuildingForPlayer(playerid, 1297, 1191.1328, -1476.6797, 15.9375, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1118.0156, -1467.4688, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 955, 1154.7266, -1460.8906, 15.1563, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1139.9219, -1467.4688, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1139.9219, -1456.4375, 15.2109, 0.25);
RemoveBuildingForPlayer(playerid, 792, 1118.0156, -1456.4375, 15.2109, 0.25); -
Hallo Brotfisch
Ich habe ebend neues Noobspawn gemappt, und die Objecte die ich entfernt habe die bleiben ingame trzdm also das heist ich habe "Removebuildingforplayer" im script alles eingefügt und wenn ich es compile und dann is gta reingehe sind bleiben dir objete immer noch? kann mir jemand sagen was das problem sein kann?
-
Ahh, Synonym
Danke funktioniert, Danke euch alle :))
-
habe ich ja,..bekomme ja trzdm errors...
-
Hmm immernoch errors -.-
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10147) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10168) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10190) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10211) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10232) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10253) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10274) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10295) : error 001: expected token: ";", but found "-identifier-"
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10316) : error 001: expected token: ";", but found "-identifier-"
Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase9 Errors.
if(CurrentMenu == BSMK)
{
switch(row)
{
case 0:
{
if(GetPlayerMoney(playerid) >= 3)
{
new Float:health;
ShowMenuForPlayer(BSMK,playerid);
GivePlayerMoney(playerid, -3);
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
SetPlayerHealth(playerid,GetPlayerHealth(playerid,health) + 45.0);
SendClientMessage(playerid, COLOR_GREEN, "Sie haben sich 3 Chicken Nuggets gekauft.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Kosten: $3 | Hp: +45");}
else
{
SendClientMessage(playerid, NY, "Sie haben zuwenig Geld.");
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
}
}
case 1:
{
if(GetPlayerMoney(playerid) >= 6)
{
ShowMenuForPlayer(BSMK,playerid);
GivePlayerMoney(playerid, -6);
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
new Float:health
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,health + 90.0);
SendClientMessage(playerid, COLOR_GREEN, "Sie haben sich 12 Chicken Nuggets gekauft.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Kosten: $6 | Hp: +90");
}
else
{
SendClientMessage(playerid, NY, "Sie haben zuwenig Geld.");
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
}
}
case 2:
{
if(GetPlayerMoney(playerid) >= 12)
{
ShowMenuForPlayer(BSMK,playerid);
GivePlayerMoney(playerid, -12);
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
new Float:health
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,health + 90.0);
SendClientMessage(playerid, COLOR_GREEN, "Sie haben sich 20 Chicken Nuggets gekauft.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Kosten: $12 | Hp: +100");}
else
{
SendClientMessage(playerid, NY, "Sie haben zuwenig Geld.");
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
}
}
case 3:
{
if(GetPlayerMoney(playerid) >= 1)
{
ShowMenuForPlayer(BSMK,playerid);
GivePlayerMoney(playerid, -1);
UnFreezePlayer(playerid);
HideMenuForPlayer(BSMK,playerid);
new Float:health
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,health + 90.0);
SendClientMessage(playerid, COLOR_GREEN, "Sie haben sich einen Cheesburger gekauft.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Kosten: $1 | Hp: +35");
}
else
{
SendClientMessage(playerid, NY, "Sie haben zuwenig Geld.");
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
}
}
case 4:
{
if(GetPlayerMoney(playerid) >= 1)
{
ShowMenuForPlayer(BSMK,playerid);
GivePlayerMoney(playerid, -1);
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
new Float:health
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,health + 90.0);
SendClientMessage(playerid, COLOR_GREEN, "Sie haben sich einen Chickenburger gekauft.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Kosten: $1 | Hp: +38");
}
else
{
SendClientMessage(playerid, NY, "Sie haben zuwenig Geld.");
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
}
}
case 5:
{
if(GetPlayerMoney(playerid) >= 7)
{
ShowMenuForPlayer(BSMK,playerid);
GivePlayerMoney(playerid, -7);
UnFreezePlayer(playerid);
HideMenuForPlayer(BSMK,playerid);
new Float:health
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,health + 90.0);
SendClientMessage(playerid, COLOR_GREEN, "Sie haben sich einen Mc Chicken gekauft.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Kosten: $7 | Hp: +65");
}
else
{
SendClientMessage(playerid, NY, "Sie haben zuwenig Geld.");
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
}
}
case 6:
{
if(GetPlayerMoney(playerid) >= 2)
{
ShowMenuForPlayer(BSMK,playerid);
GivePlayerMoney(playerid, -2);
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
new Float:health
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,health + 90.0);
SendClientMessage(playerid, COLOR_GREEN, "Sie haben sich Pommes gekauft.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Kosten: $2 | Hp: +25");
}
else
{
SendClientMessage(playerid, NY, "Sie haben zuwenig Geld.");
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
}
}
case 7:
{
if(GetPlayerMoney(playerid) >= 8)
{
ShowMenuForPlayer(BSMK,playerid);
GivePlayerMoney(playerid, -8);
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
new Float:health
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,health + 90.0);
SendClientMessage(playerid, COLOR_GREEN, "Sie haben sich einen Big Mac gekauft.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Kosten: $8 | Hp: +80");
}
else
{
SendClientMessage(playerid, NY, "Sie haben zuwenig Geld.");
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
}
}
case 8:
{
if(GetPlayerMoney(playerid) >= 4)
{
ShowMenuForPlayer(BSMK,playerid);
GivePlayerMoney(playerid, -4);
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
new Float:health
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,health + 90.0);
SendClientMessage(playerid, COLOR_GREEN, "Sie haben sich einen Fisch Mac gekauft.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Kosten: $4 | Hp: +74");
}
else
{
SendClientMessage(playerid, NY, "Sie haben zuwenig Geld.");
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
}
}
case 9:
{
if(GetPlayerMoney(playerid) >= 2)
{
ShowMenuForPlayer(BSMK,playerid);
GivePlayerMoney(playerid, -2);
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
new Float:health
GetPlayerHealth(playerid,health);
SetPlayerHealth(playerid,health + 90.0);
SendClientMessage(playerid, COLOR_GREEN, "Sie haben sich eine Glas Cola gekauft.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Kosten: $2 | Hp: +15");
}
else
{
SendClientMessage(playerid, NY, "Sie haben zuwenig Geld.");
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
}
}
case 10:
{
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
}
}
} -
Hallo Brotfish.
Ich habe da ein kleines problem unzwar. will ich im BSN ein befehl machen damit die user /menu benutzen können usw...
alles funktioniert ja nur, ich bekomme Warnings da wo ich den User Heal gebe, ich machs so "SetPlayerHealth(playerid, + 45.0);"
ich will nicht lange reden kuckts euch einfach an...C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10241) : error 029: invalid expression, assumed zero
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10241) : warning 215: expression has no effect
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10241) : error 001: expected token: ";", but found ")"
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10241) : error 029: invalid expression, assumed zero
C:\Users\Gta Server\Desktop\Neuer Ordner\SEHR WICHTIG\NewServer\gamemodes\EYD.pwn(10241) : fatal error 107: too many error messages on one lineCompilation aborted.Pawn compiler 3.2.3664 Copyright (c) 1997-2006, ITB CompuPhase
4 Errors.
if(GetPlayerMoney(playerid) >= 2)
{
ShowMenuForPlayer(BSMK,playerid);
GivePlayerMoney(playerid, -2);
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
SetPlayerHealth(playerid, + 25.0);
SendClientMessage(playerid, COLOR_GREEN, "Sie haben sich Pommes gekauft.");
SendClientMessage(playerid, COLOR_WHITE, "INFO: Kosten: $2 | Hp: +25");
}
else
{
SendClientMessage(playerid, NY, "Sie haben zuwenig Geld.");
HideMenuForPlayer(BSMK,playerid);
UnFreezePlayer(playerid);
} -
Hmm, okay ich habs verstanden...nur wie soll ich das jetz machen?
-
Hallo Community.
Wie kann ich das so machen das für die Fraktion Ordnungsamt alle Fahrzeuge geöffnet sind, ich meine damit nur das die Privat Fahrzeuge geöffnet sein sollten! ansonsten Keine anderen!
Danke im vorraus
-
Hei das geht irgendwie nicht die Fahrzeuge bleiben für die Frak geschlossen...
-
wenn sich zivis in Frak cars setzen dann durch RemovePlayerFromVehicle, wenn ich ein autobefehl mache dann durch SetVehicleParamsEx
-
Hallo Community.
Wie kann ich das so machen, das für die Fraktion Ordnungsamt, alle Fahrzeuge geöffnet sind? nur für die fraktion O-amt, für zivis oder andere fraks nicht.
Danke im vorraus.