Ich habe neulich ein Hallenderbyevent gemacht und der pickup davon erstellt nur wenn ich /event mache usw... ich hab mir grad so nix gedacht ging in die Fahrschule und wollte meinen Skin anziehen da ist ein Pickup und aufeinmal setzt es mich ins event wie ist das mögl...?
Lange Geschichte kurzer sinn - wenn ich in der Fahrschulwe in den Skin Pickup gehe spawne ich im Event obwohl ich keins gestartet hab und ich ins falsche pickup gelaufen bin.
Der fahrschul Pickup
CreateDynamicPickup(1275,1,-2032.6844,-116.7656,1035.1719);//Fahrschul Skins
CreateDynamicPickup(1275,1,1721.5629,-1672.5396,20.2235);//Feuerwehr skins
new EventPickup;
new EventCar[15];
Das Event
ocmd:event(playerid,params[])
{
if(!IstSpielerAdmin(playerid,3)) return SendClientMessage(playerid,Rot,"Du darfst das nicht!");
ShowPlayerDialog(playerid,EVENT_Dialog,DIALOG_STYLE_LIST,"Eventauswahl","Derbyevent (Hallendeby)\nDerbyevent (Grubenderby)","Starten","Abbrechen");
return 1;
}
if(dialogid == EVENT_Dialog)
{
if(response)
{
if(listitem == 0)
{
ShowPlayerDialog(playerid,Dialog_Fahrzeuge_Derby,DIALOG_STYLE_LIST,"Fahrzeugwahl","Hotring RacerA\nHotring RacerB\nTourismo\nSandKing\nWasserwerfer","Starten","Abbrechen");
}
if(listitem == 1)
{
new string[164];
format(string,sizeof(string),"Der Event Leiter ist %s. Bei Fragen wendet euch an ihn!",SpielerName(playerid));
SendClientMessageToAll(Gelb,"=================Event====================");
SendClientMessageToAll(Orange,"Wir veranstalten ein GrubenDerby!");
SendClientMessageToAll(Orange,"Bitte kommt mit Privatcars!");
SendClientMessageToAll(Orange,"Boote, Helis, Fraktcars, Zweiräder, sowie alle gepanzerten Fahrzeuge sind verboten!");
SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
SendClientMessageToAll(Orange,string);
SendClientMessage(playerid,Gruen,"Du hast das Grubenderby gestartet!");
for(new i = 0; i < GetMaxPlayers(); i++)
{
SetPlayerMapIcon(i,77,-1697.0339,57.6162,3.2617,19,0,MAPICON_GLOBAL);
}
}
}
}
if(dialogid == Dialog_Fahrzeuge_Derby){
switch(listitem){
case 0:
{
SendClientMessageToAll(Gelb,"=================Event====================");
SendClientMessageToAll(Orange,"Wir veranstalten ein Hallenderby");
SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
SendClientMessageToAll(Orange,"Die Fahrzeuge werden gestellt!");
for(new i = 0; i < GetMaxPlayers(); i++)
{
SetPlayerMapIcon(i,77,-2109.6633,-445.7775,38.7344,19,0,MAPICON_GLOBAL);
}
EventPickup=CreatePickup(1559,1,-2109.6633,-445.7775,38.7344,0);
EventCar[1]=CreateVehicle(494, -1362.8175, 979.4172, 1023.4709, 5.6168, -1, -1, 100);
EventCar[2]=CreateVehicle(494, -1366.7455, 979.1402, 1023.4709, 3.6039, -1, -1, 100);
EventCar[3]=CreateVehicle(494, -1370.8566, 978.9802, 1023.4709, 3.5568, -1, -1, 100);
EventCar[4]=CreateVehicle(494, -1374.6182, 978.6675, 1023.4709, 3.6168, -1, -1, 100);
EventCar[5]=CreateVehicle(494, -1379.2742, 978.1277, 1023.4709, 3.4839, -1, -1, 100);
EventCar[6]=CreateVehicle(494, -1383.2332, 978.0792, 1023.4709, 3.7330, -1, -1, 100);
EventCar[7]=CreateVehicle(494, -1383.9534, 984.2579, 1023.6709, 3.8522, -1, -1, 100);
EventCar[8]=CreateVehicle(494, -1380.3071, 984.4999, 1023.6709, 3.2208, -1, -1, 100);
EventCar[9]=CreateVehicle(494, -1375.4861, 984.8995, 1023.6709, 3.8026, -1, -1, 100);
EventCar[10]=CreateVehicle(494, -1371.1536, 985.2707, 1023.6709, 4.0362, -1, -1, 100);
EventCar[11]=CreateVehicle(494, -1367.2527, 985.5884, 1023.6709, 4.9076, -1, -1, 100);
EventCar[12]=CreateVehicle(494, -1363.4469, 985.9000, 1023.6709, 4.8193, -1, -1, 100);
EventCar[13]=CreateVehicle(494, -1359.1084, 979.6376, 1023.6709, 4.7251, -1, -1, 100);
EventCar[14]=CreateVehicle(494, -1359.6619, 986.0725, 1023.6709, 4.8843, -1, -1, 100);
LinkVehicleToInterior(EventCar[1],15),LinkVehicleToInterior(EventCar[6],15),LinkVehicleToInterior(EventCar[11],15);
LinkVehicleToInterior(EventCar[2],15),LinkVehicleToInterior(EventCar[7],15),LinkVehicleToInterior(EventCar[12],15);
LinkVehicleToInterior(EventCar[3],15),LinkVehicleToInterior(EventCar[8],15),LinkVehicleToInterior(EventCar[13],15);
LinkVehicleToInterior(EventCar[4],15),LinkVehicleToInterior(EventCar[9],15),LinkVehicleToInterior(EventCar[14],15);
LinkVehicleToInterior(EventCar[5],15),LinkVehicleToInterior(EventCar[10],15);
}
case 1:
{
SendClientMessageToAll(Gelb,"=================Event====================");
SendClientMessageToAll(Orange,"Wir veranstalten ein Hallenderby");
SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
SendClientMessageToAll(Orange,"Die Fahrzeuge werden gestellt!");
for(new i = 0; i < GetMaxPlayers(); i++)
{
SetPlayerMapIcon(i,77,-2109.6633,-445.7775,38.7344,19,0,MAPICON_GLOBAL);
}
EventPickup=CreatePickup(1559,1,-2109.6633,-445.7775,38.7344,0);
EventCar[1]=CreateVehicle(503, -1362.8175, 979.4172, 1023.4709, 5.6168, -1, -1, 100);
EventCar[2]=CreateVehicle(503, -1366.7455, 979.1402, 1023.4709, 3.6039, -1, -1, 100);
EventCar[3]=CreateVehicle(503, -1370.8566, 978.9802, 1023.4709, 3.5568, -1, -1, 100);
EventCar[4]=CreateVehicle(503, -1374.6182, 978.6675, 1023.4709, 3.6168, -1, -1, 100);
EventCar[5]=CreateVehicle(503, -1379.2742, 978.1277, 1023.4709, 3.4839, -1, -1, 100);
EventCar[6]=CreateVehicle(503, -1383.2332, 978.0792, 1023.4709, 3.7330, -1, -1, 100);
EventCar[7]=CreateVehicle(503, -1383.9534, 984.2579, 1023.6709, 3.8522, -1, -1, 100);
EventCar[8]=CreateVehicle(503, -1380.3071, 984.4999, 1023.6709, 3.2208, -1, -1, 100);
EventCar[9]=CreateVehicle(503, -1375.4861, 984.8995, 1023.6709, 3.8026, -1, -1, 100);
EventCar[10]=CreateVehicle(503, -1371.1536, 985.2707, 1023.6709, 4.0362, -1, -1, 100);
EventCar[11]=CreateVehicle(503, -1367.2527, 985.5884, 1023.6709, 4.9076, -1, -1, 100);
EventCar[12]=CreateVehicle(503, -1363.4469, 985.9000, 1023.6709, 4.8193, -1, -1, 100);
EventCar[13]=CreateVehicle(503, -1359.1084, 979.6376, 1023.6709, 4.7251, -1, -1, 100);
EventCar[14]=CreateVehicle(503, -1359.6619, 986.0725, 1023.6709, 4.8843, -1, -1, 100);
LinkVehicleToInterior(EventCar[1],15),LinkVehicleToInterior(EventCar[6],15),LinkVehicleToInterior(EventCar[11],15);
LinkVehicleToInterior(EventCar[2],15),LinkVehicleToInterior(EventCar[7],15),LinkVehicleToInterior(EventCar[12],15);
LinkVehicleToInterior(EventCar[3],15),LinkVehicleToInterior(EventCar[8],15),LinkVehicleToInterior(EventCar[13],15);
LinkVehicleToInterior(EventCar[4],15),LinkVehicleToInterior(EventCar[9],15),LinkVehicleToInterior(EventCar[14],15);
LinkVehicleToInterior(EventCar[5],15),LinkVehicleToInterior(EventCar[10],15);
}
case 2:
{
SendClientMessageToAll(Gelb,"=================Event====================");
SendClientMessageToAll(Orange,"Wir veranstalten ein Hallenderby");
SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
SendClientMessageToAll(Orange,"Die Fahrzeuge werden gestellt!");
for(new i = 0; i < GetMaxPlayers(); i++)
{
SetPlayerMapIcon(i,77,-2109.6633,-445.7775,38.7344,19,0,MAPICON_GLOBAL);
}
EventPickup=CreatePickup(1559,1,-2109.6633,-445.7775,38.7344,0);
EventCar[1]=CreateVehicle(451, -1362.8175, 979.4172, 1023.4709, 5.6168, -1, -1, 100);
EventCar[2]=CreateVehicle(451, -1366.7455, 979.1402, 1023.4709, 3.6039, -1, -1, 100);
EventCar[3]=CreateVehicle(451, -1370.8566, 978.9802, 1023.4709, 3.5568, -1, -1, 100);
EventCar[4]=CreateVehicle(451, -1374.6182, 978.6675, 1023.4709, 3.6168, -1, -1, 100);
EventCar[5]=CreateVehicle(451, -1379.2742, 978.1277, 1023.4709, 3.4839, -1, -1, 100);
EventCar[6]=CreateVehicle(451, -1383.2332, 978.0792, 1023.4709, 3.7330, -1, -1, 100);
EventCar[7]=CreateVehicle(451, -1383.9534, 984.2579, 1023.6709, 3.8522, -1, -1, 100);
EventCar[8]=CreateVehicle(451, -1380.3071, 984.4999, 1023.6709, 3.2208, -1, -1, 100);
EventCar[9]=CreateVehicle(451, -1375.4861, 984.8995, 1023.6709, 3.8026, -1, -1, 100);
EventCar[10]=CreateVehicle(451, -1371.1536, 985.2707, 1023.6709, 4.0362, -1, -1, 100);
EventCar[11]=CreateVehicle(451, -1367.2527, 985.5884, 1023.6709, 4.9076, -1, -1, 100);
EventCar[12]=CreateVehicle(451, -1363.4469, 985.9000, 1023.6709, 4.8193, -1, -1, 100);
EventCar[13]=CreateVehicle(451, -1359.1084, 979.6376, 1023.6709, 4.7251, -1, -1, 100);
EventCar[14]=CreateVehicle(451, -1359.6619, 986.0725, 1023.6709, 4.8843, -1, -1, 100);
LinkVehicleToInterior(EventCar[1],15),LinkVehicleToInterior(EventCar[6],15),LinkVehicleToInterior(EventCar[11],15);
LinkVehicleToInterior(EventCar[2],15),LinkVehicleToInterior(EventCar[7],15),LinkVehicleToInterior(EventCar[12],15);
LinkVehicleToInterior(EventCar[3],15),LinkVehicleToInterior(EventCar[8],15),LinkVehicleToInterior(EventCar[13],15);
LinkVehicleToInterior(EventCar[4],15),LinkVehicleToInterior(EventCar[9],15),LinkVehicleToInterior(EventCar[14],15);
LinkVehicleToInterior(EventCar[5],15),LinkVehicleToInterior(EventCar[10],15);
}
case 3:
{
SendClientMessageToAll(Gelb,"=================Event====================");
SendClientMessageToAll(Orange,"Wir veranstalten ein Hallenderby");
SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
SendClientMessageToAll(Orange,"Die Fahrzeuge werden gestellt!");
for(new i = 0; i < GetMaxPlayers(); i++)
{
SetPlayerMapIcon(i,77,-2109.6633,-445.7775,38.7344,19,0,MAPICON_GLOBAL);
}
EventPickup=CreatePickup(1559,1,-2109.6633,-445.7775,38.7344,0);
EventCar[1]=CreateVehicle(495, -1362.8175, 979.4172, 1023.4709, 5.6168, -1, -1, 100);
EventCar[2]=CreateVehicle(495, -1366.7455, 979.1402, 1023.4709, 3.6039, -1, -1, 100);
EventCar[3]=CreateVehicle(495, -1370.8566, 978.9802, 1023.4709, 3.5568, -1, -1, 100);
EventCar[4]=CreateVehicle(495, -1374.6182, 978.6675, 1023.4709, 3.6168, -1, -1, 100);
EventCar[5]=CreateVehicle(495, -1379.2742, 978.1277, 1023.4709, 3.4839, -1, -1, 100);
EventCar[6]=CreateVehicle(495, -1383.2332, 978.0792, 1023.4709, 3.7330, -1, -1, 100);
EventCar[7]=CreateVehicle(495, -1383.9534, 984.2579, 1023.6709, 3.8522, -1, -1, 100);
EventCar[8]=CreateVehicle(495, -1380.3071, 984.4999, 1023.6709, 3.2208, -1, -1, 100);
EventCar[9]=CreateVehicle(495, -1375.4861, 984.8995, 1023.6709, 3.8026, -1, -1, 100);
EventCar[10]=CreateVehicle(495, -1371.1536, 985.2707, 1023.6709, 4.0362, -1, -1, 100);
EventCar[11]=CreateVehicle(495, -1367.2527, 985.5884, 1023.6709, 4.9076, -1, -1, 100);
EventCar[12]=CreateVehicle(495, -1363.4469, 985.9000, 1023.6709, 4.8193, -1, -1, 100);
EventCar[13]=CreateVehicle(495, -1359.1084, 979.6376, 1023.6709, 4.7251, -1, -1, 100);
EventCar[14]=CreateVehicle(495, -1359.6619, 986.0725, 1023.6709, 4.8843, -1, -1, 100);
LinkVehicleToInterior(EventCar[1],15),LinkVehicleToInterior(EventCar[6],15),LinkVehicleToInterior(EventCar[11],15);
LinkVehicleToInterior(EventCar[2],15),LinkVehicleToInterior(EventCar[7],15),LinkVehicleToInterior(EventCar[12],15);
LinkVehicleToInterior(EventCar[3],15),LinkVehicleToInterior(EventCar[8],15),LinkVehicleToInterior(EventCar[13],15);
LinkVehicleToInterior(EventCar[4],15),LinkVehicleToInterior(EventCar[9],15),LinkVehicleToInterior(EventCar[14],15);
LinkVehicleToInterior(EventCar[5],15),LinkVehicleToInterior(EventCar[10],15);
}
case 4:
{
SendClientMessageToAll(Gelb,"=================Event====================");
SendClientMessageToAll(Orange,"Wir veranstalten ein Hallenderby");
SendClientMessageToAll(Orange,"Es wurde ein Eventmarker gesetzt!");
SendClientMessageToAll(Orange,"Die Fahrzeuge werden gestellt!");
for(new i = 0; i < GetMaxPlayers(); i++)
{
SetPlayerMapIcon(i,77,-2109.6633,-445.7775,38.7344,19,0,MAPICON_GLOBAL);
}
EventPickup=CreatePickup(1559,1,-2109.6633,-445.7775,38.7344,0);
EventCar[1]=CreateVehicle(601, -1362.8175, 979.4172, 1023.4709, 5.6168, -1, -1, 100);
EventCar[2]=CreateVehicle(601, -1366.7455, 979.1402, 1023.4709, 3.6039, -1, -1, 100);
EventCar[3]=CreateVehicle(601, -1370.8566, 978.9802, 1023.4709, 3.5568, -1, -1, 100);
EventCar[4]=CreateVehicle(601, -1374.6182, 978.6675, 1023.4709, 3.6168, -1, -1, 100);
EventCar[5]=CreateVehicle(601, -1379.2742, 978.1277, 1023.4709, 3.4839, -1, -1, 100);
EventCar[6]=CreateVehicle(601, -1383.2332, 978.0792, 1023.4709, 3.7330, -1, -1, 100);
EventCar[7]=CreateVehicle(601, -1383.9534, 984.2579, 1023.6709, 3.8522, -1, -1, 100);
EventCar[8]=CreateVehicle(601, -1380.3071, 984.4999, 1023.6709, 3.2208, -1, -1, 100);
EventCar[9]=CreateVehicle(601, -1375.4861, 984.8995, 1023.6709, 3.8026, -1, -1, 100);
EventCar[10]=CreateVehicle(601, -1371.1536, 985.2707, 1023.6709, 4.0362, -1, -1, 100);
EventCar[11]=CreateVehicle(601, -1367.2527, 985.5884, 1023.6709, 4.9076, -1, -1, 100);
EventCar[12]=CreateVehicle(601, -1363.4469, 985.9000, 1023.6709, 4.8193, -1, -1, 100);
EventCar[13]=CreateVehicle(601, -1359.1084, 979.6376, 1023.6709, 4.7251, -1, -1, 100);
EventCar[14]=CreateVehicle(601, -1359.6619, 986.0725, 1023.6709, 4.8843, -1, -1, 100);
LinkVehicleToInterior(EventCar[1],15),LinkVehicleToInterior(EventCar[6],15),LinkVehicleToInterior(EventCar[11],15);
LinkVehicleToInterior(EventCar[2],15),LinkVehicleToInterior(EventCar[7],15),LinkVehicleToInterior(EventCar[12],15);
LinkVehicleToInterior(EventCar[3],15),LinkVehicleToInterior(EventCar[8],15),LinkVehicleToInterior(EventCar[13],15);
LinkVehicleToInterior(EventCar[4],15),LinkVehicleToInterior(EventCar[9],15),LinkVehicleToInterior(EventCar[14],15);
LinkVehicleToInterior(EventCar[5],15),LinkVehicleToInterior(EventCar[10],15);
}
}
}
//onplayerPickuppickup
if(pickupid == EventPickup)
{
SpielerImEvent[playerid] = 1;
SetPlayerPos(playerid,-1394.3094,979.4738,1023.8345);
SetPlayerInterior(playerid,15);
SetCameraBehindPlayer(playerid);
}
//edit die feuerwehr Skins buggen auch(machen das selbe