Hallo liebe Brotfische,
ich habe das script mit den Feuerreifen aus Youtube:
http://www.youtube.com/watch?v=MYy2DiyF8hA
(An die Admins der Link soll keine Werbung sein er dient nur zum verstäntnis was ich meine)
so das script als filterscript lauft für alle
ich versuche das fs so umzuschreiben das nur ich es bsp benutzen kann
und das ich dazu die SUBMISSION taste drücke
dazu kommt das ein "schalter" eingebaut ist sprich 1x drücken an nochma aus
nur mein problem ist wenn ich dann 2 bzw das + beim numpad drücke passiert nix
kann mir jemand helfen?
hier ist das script:
#include <a_samp>
new fire[MAX_PLAYERS],firee[MAX_PLAYERS],fireee[MAX_PLAYERS],fireeee[MAX_PLAYERS],fireeeee[MAX_PLAYERS],fireeeeee[MAX_PLAYERS],fireinfo[MAX_PLAYERS];
new Schalter[MAX_PLAYERS];
public OnFilterScriptInit()
{
return 1;
}
public OnFilterScriptExit()
{
return 1;
}
public OnPlayerConnect(playerid)
{
fireinfo[playerid] = 0;
Schalter[playerid] = 0;
return 1;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
new plname[MAX_PLAYER_NAME];
new model = GetPlayerVehicleID(playerid);
model = GetVehicleModel(model);
if(!strcmp(plname, "NAME", true))
{
if ((newkeys & KEY_SUBMISSION))
{
if(Schalter[playerid] == 0)
{
Schalter[playerid] = 1;
if(model == 400||model == 401||model == 402||model == 404||model == 405||model == 410
||model == 411||model == 412||model == 413||model == 415||model == 418||model == 419
||model == 420||model == 421||model == 422||model == 426||model == 429||model == 436
||model == 438||model == 439||model == 440||model == 445||model == 451||model == 458
||model == 459||model == 466||model == 467||model == 470||model == 474||model == 475
||model == 477||model == 478||model == 479||model == 480||model == 482||model == 489
||model == 490||model == 491||model == 492||model == 494||model == 495||model == 496
||model == 500||model == 502||model == 503||model == 504||model == 505||model == 506
||model == 507||model == 516||model == 517||model == 518||model == 526||model == 527
||model == 528||model == 529||model == 533||model == 534||model == 535||model == 536
||model == 540||model == 541||model == 542||model == 543||model == 546||model == 547
||model == 549||model == 550||model == 551||model == 554||model == 555||model == 558
||model == 559||model == 560||model == 561||model == 562||model == 565||model == 566
||model == 567||model == 568||model == 575||model == 576||model == 579||model == 580
||model == 582||model == 585||model == 587||model == 589||model == 596||model == 597
||model == 598||model == 599||model == 600||model == 602||model == 603||model == 604||model == 605)
{
if(fireinfo[playerid] == 0)
{
fire[playerid] = CreateObject(18694,0,0,0,0,0,0);
firee[playerid] = CreateObject(18694,0,0,0,0,0,0);
fireee[playerid] = CreateObject(18694,0,0,0,0,0,0);
fireeee[playerid] = CreateObject(18694,0,0,0,0,0,0);
AttachObjectToVehicle(fire[playerid], GetPlayerVehicleID(playerid), -0.8, 2.0, -2.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(firee[playerid], GetPlayerVehicleID(playerid), 0.8, 2.0, -2.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(fireee[playerid], GetPlayerVehicleID(playerid), -0.8, -2.0, -2.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(fireeee[playerid], GetPlayerVehicleID(playerid), 0.8, -2.0, -2.0, 0.0, 0.0, 0.0);
fireinfo[playerid] = 1;
}
}
if(model == 465||model == 448||model == 581||model == 522||model == 461||model == 521
||model == 523||model == 463||model == 586||model == 468)
{
if(fireinfo[playerid] == 0)
{
fireeeee[playerid] = CreateObject(18694,0,0,0,0,0,0);
fireeeeee[playerid] = CreateObject(18694,0,0,0,0,0,0);
AttachObjectToVehicle(fireeeee[playerid], GetPlayerVehicleID(playerid), 0.0, 1.3, -2.0, 0.0, 0.0, 0.0);
AttachObjectToVehicle(fireeeeee[playerid], GetPlayerVehicleID(playerid), 0.0, -1.3, -2.0, 0.0, 0.0, 0.0);
fireinfo[playerid] = 1;
}
}
}
}
}
if(Schalter[playerid] == 1)
{
if(fireinfo[playerid] == 1)
{
DestroyObject(fire[playerid]);
DestroyObject(firee[playerid]);
DestroyObject(fireee[playerid]);
DestroyObject(fireeee[playerid]);
DestroyObject(fireeeee[playerid]);
DestroyObject(fireeeeee[playerid]);
fireinfo[playerid] = 0;
Schalter[playerid] = 0;
}
}
return 1;
}
kann mir da wer sagen was daran falsch ist?
danke im vorraus
//Edit:
- Datei Angehangen
- Könnte es bitte einer So umschreiben das es Funktioniert?
- habs schon durch command versucht aber komme da iwie nicht durch
- danke
//Edit:
- richtige Datei hochgeladen