Das liegt bestimmt nicht bei onplayerpickuppickup ich habe keine Ahnung warum die 2 Pickups einfach crashen das gibts doch net
Beiträge von Mischa.Messi
-
-
Function OnPlayerPickUpPickup(playerid,pickupid)
{if(pickupid == versteckup)
{
SetTimer("versteck", 300000, 1);
}
if(pickupid == port)
{
SetPlayerPos(playerid, 189.3784,179.2099,1003.0234);
SetPlayerInterior(playerid, 3);
GameTextForPlayer(playerid,"~g~Willkommen im LSPD",4000,3);
}
for(new x = 0; x < AUTOHAUSER;x++)
{
if(PlayerToPoint(1.5, playerid, DtcSonstiges[x][0][0],DtcSonstiges[x][0][1],DtcSonstiges[x][0][2]) && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]] || pickupid == Dtc_Info[x] && !Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
{
TogglePlayerControllable(playerid, 0);
SetPlayerVirtualWorld(playerid,55+playerid);
new string[246];
new string2[246];
dtc_AutohausCar[playerid] = 0;
dtc_AutohausCat[playerid] = x;
new c1 = random(120);
new c2 = random(120);
new car;
new preis;
for(new ah = 0; ah < sizeof(dtcKaufliste);ah++)
{
if(car == 0 && dtcKaufliste[ah][dtc_Autohaus] == x)
{
car = dtcKaufliste[ah][dtc_CarModel];
preis = dtcKaufliste[ah][dtc_CarModel];
}
}
CarKauf[playerid] = 1;
SetPlayerCameraPos(playerid, DtcSonstiges[x][2][0],DtcSonstiges[x][2][1],DtcSonstiges[x][2][2]);
SetPlayerCameraLookAt(playerid, DtcSonstiges[x][1][0],DtcSonstiges[x][1][1],DtcSonstiges[x][1][2]);
dtc_AutohausSCar[playerid] = CreateVehicle(car, DtcSonstiges[x][1][0],DtcSonstiges[x][1][1],DtcSonstiges[x][1][2],DtcSonstiges[x][1][3],c1,c2,-1);
SetPlayerPos(playerid, DtcSonstiges[x][3][0],DtcSonstiges[x][3][1],DtcSonstiges[x][3][2]);
SetVehicleVirtualWorld(dtc_AutohausSCar[playerid],55+playerid);
//format(string,sizeof(string),"~r~---------- AUTOHAUS ----------~n~~g~Fahrzeug: ~w~%s~n~~g~Preis: ~w~$%d~n~~b~Auswaehlen:~n~~w~ <Num 4<~b~&~w~>Num 6> ~n~~b~Kaufen:~w~ Enter ~n~~b~Abbrechen:~w~ Tab",CarName[car-400],preis);
if(CarKauf[playerid] == 1)
{
/*CarKauf[playerid] = TextDrawCreate(200,310,string);
TextDrawAlignment(CarKauf[playerid],1);
TextDrawUseBox(CarKauf[playerid],1);
TextDrawBoxColor(CarKauf[playerid],0x000000FF);
TextDrawSetOutline(CarKauf[playerid],1);
TextDrawBackgroundColor(CarKauf[playerid],COLOR_BLACK);
TextDrawSetOutline(CarKauf[playerid],1);
TextDrawFont(CarKauf[playerid], 2);
//TextDrawSetProportional(CarKauf[playerid], 2);
TextDrawTextSize(CarKauf[playerid],450,410);*/
//TextDrawShowForPlayer(playerid,CarKauf[playerid]);
AutohausTD0[playerid] = TextDrawCreate(120.000000, 437.000000, "Um das Fahrzeug zu Kaufen druecke die ~b~Enter~w~ Taste~w~ Zum Abbrechen druecke die ~b~Tab~w~ Taste");
TextDrawBackgroundColor(AutohausTD0[playerid], 255);
TextDrawFont(AutohausTD0[playerid], 1);
TextDrawLetterSize(AutohausTD0[playerid], 0.200000, 1.000000);
TextDrawColor(AutohausTD0[playerid], -1);
TextDrawSetOutline(AutohausTD0[playerid], 0);
TextDrawSetProportional(AutohausTD0[playerid], 1);
TextDrawSetShadow(AutohausTD0[playerid], 1);AutohausTD1[playerid] = TextDrawCreate(204.000000, 333.000000, " ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~ ~n~");
TextDrawBackgroundColor(AutohausTD1[playerid], 255);
TextDrawFont(AutohausTD1[playerid], 1);
TextDrawLetterSize(AutohausTD1[playerid], 0.500000, 1.000000);
TextDrawColor(AutohausTD1[playerid], 0xFFFFFF88);
TextDrawSetOutline(AutohausTD1[playerid], 0);
TextDrawSetProportional(AutohausTD1[playerid], 1);
TextDrawSetShadow(AutohausTD1[playerid], 1);
TextDrawUseBox(AutohausTD1[playerid], 1);
TextDrawBoxColor(AutohausTD1[playerid], 102);
TextDrawTextSize(AutohausTD1[playerid], 437.000000, 110.000000);AutohausTD2[playerid] = TextDrawCreate(280.000000, 332.000000, "~r~Autohaus");
TextDrawBackgroundColor(AutohausTD2[playerid], 255);
TextDrawFont(AutohausTD2[playerid], 1);
TextDrawLetterSize(AutohausTD2[playerid], 0.400000, 1.000000);
TextDrawColor(AutohausTD2[playerid], -1);
TextDrawSetOutline(AutohausTD2[playerid], 0);
TextDrawSetProportional(AutohausTD2[playerid], 1);
TextDrawSetShadow(AutohausTD2[playerid], 1);AutohausTD3[playerid] = TextDrawCreate(203.000000, 351.000000, "Fahrzeug Name: ~b~%d");
TextDrawBackgroundColor(AutohausTD3[playerid], 255);
TextDrawFont(AutohausTD3[playerid], 1);
TextDrawLetterSize(AutohausTD3[playerid], 0.300000, 1.000000);
TextDrawColor(AutohausTD3[playerid], -1);
TextDrawSetOutline(AutohausTD3[playerid], 0);
TextDrawSetProportional(AutohausTD3[playerid], 1);
TextDrawSetShadow(AutohausTD3[playerid], 1);AutohausTD4[playerid] = TextDrawCreate(204.000000, 362.000000, "Preis: ~b~$ %d");
TextDrawBackgroundColor(AutohausTD4[playerid], 255);
TextDrawFont(AutohausTD4[playerid], 1);
TextDrawLetterSize(AutohausTD4[playerid], 0.300000, 1.000000);
TextDrawColor(AutohausTD4[playerid], -1);
TextDrawSetOutline(AutohausTD4[playerid], 0);
TextDrawSetProportional(AutohausTD4[playerid], 1);
TextDrawSetShadow(AutohausTD4[playerid], 1);AutohausTD5[playerid] = TextDrawCreate(202.000000, 389.000000, "~r~Fahrzeug Wechseln:");
TextDrawBackgroundColor(AutohausTD5[playerid], 255);
TextDrawFont(AutohausTD5[playerid], 1);
TextDrawLetterSize(AutohausTD5[playerid], 0.300000, 1.000000);
TextDrawColor(AutohausTD5[playerid], -1);
TextDrawSetOutline(AutohausTD5[playerid], 0);
TextDrawSetProportional(AutohausTD5[playerid], 1);
TextDrawSetShadow(AutohausTD5[playerid], 1);AutohausTD6[playerid] = TextDrawCreate(204.000000, 400.000000, "Weiter: ~b~Numpad 6");
TextDrawBackgroundColor(AutohausTD6[playerid], 255);
TextDrawFont(AutohausTD6[playerid], 1);
TextDrawLetterSize(AutohausTD6[playerid], 0.300000, 1.000000);
TextDrawColor(AutohausTD6[playerid], -1);
TextDrawSetOutline(AutohausTD6[playerid], 0);
TextDrawSetProportional(AutohausTD6[playerid], 1);
TextDrawSetShadow(AutohausTD6[playerid], 1);AutohausTD7[playerid] = TextDrawCreate(204.000000, 410.000000, "Zurueck: ~b~Numpad 4");
TextDrawBackgroundColor(AutohausTD7[playerid], 255);
TextDrawFont(AutohausTD7[playerid], 1);
TextDrawLetterSize(AutohausTD7[playerid], 0.300000, 1.000000);
TextDrawColor(AutohausTD7[playerid], -1);
TextDrawSetOutline(AutohausTD7[playerid], 0);
TextDrawSetProportional(AutohausTD7[playerid], 1);
TextDrawSetShadow(AutohausTD7[playerid], 1);format(string,sizeof(string),"Fahrzeug Name: ~b~%s",CarName[car-400]);
TextDrawSetString(AutohausTD3[playerid], string);
format(string2,sizeof(string2),"Preis: ~b~$ %d",preis);
TextDrawSetString(AutohausTD4[playerid], string2);TextDrawShowForPlayer(playerid,AutohausTD0[playerid]);
TextDrawShowForPlayer(playerid,AutohausTD1[playerid]);
TextDrawShowForPlayer(playerid,AutohausTD2[playerid]);
TextDrawShowForPlayer(playerid,AutohausTD3[playerid]);
TextDrawShowForPlayer(playerid,AutohausTD4[playerid]);
TextDrawShowForPlayer(playerid,AutohausTD5[playerid]);
TextDrawShowForPlayer(playerid,AutohausTD6[playerid]);
TextDrawShowForPlayer(playerid,AutohausTD7[playerid]);
TextDrawHideForPlayer(playerid,Textdraw0);
TextDrawHideForPlayer(playerid,Textdraw1);
}
else
{
//TextDrawHideForPlayer(playerid,CarKauf[playerid]);
TextDrawHideForPlayer(playerid,AutohausTD0[playerid]);
TextDrawHideForPlayer(playerid,AutohausTD1[playerid]);
TextDrawHideForPlayer(playerid,AutohausTD2[playerid]);
TextDrawHideForPlayer(playerid,AutohausTD3[playerid]);
TextDrawHideForPlayer(playerid,AutohausTD4[playerid]);
TextDrawHideForPlayer(playerid,AutohausTD5[playerid]);
TextDrawHideForPlayer(playerid,AutohausTD6[playerid]);
TextDrawHideForPlayer(playerid,AutohausTD7[playerid]);
TextDrawShowForPlayer(playerid,Textdraw0);
TextDrawShowForPlayer(playerid,Textdraw1);
}
}
else if(PlayerToPoint(1.5, playerid, DtcSonstiges[x][0][0],DtcSonstiges[x][0][1],DtcSonstiges[x][0][2]) && Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]] || pickupid == Dtc_Info[x] && Dtc_PlayerHaveCar[playerid][Dtc_PlayerKey[playerid]])
{
new mv = MaxVeh;
if(mv > 1)
{
SendClientMessage(playerid, COLOR_GREY, " Du besitzt schon ein Fahrzeug mit deinem Ausgewählten Schlüssel !");
SendClientMessage(playerid, COLOR_GREY, " Verkaufe es mit /carsell oder wechsel den Schlüssel mit /carkey !");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Du besitzt schon ein Fahrzeug! Verkaufe es mit /carsell");
}
}
}
if(pickupid == EssenPickup[0] || pickupid == EssenPickup[1] || pickupid == EssenPickup[2])
{
GameTextForPlayer(playerid,"~g~/menu",4000,3);
}
if(pickupid == KLEIDUNG_PRO)
{
if(PlayerToPoint(3.0,playerid,199.0634,-128.0607,1003.5152))
{
ShowPlayerDialog(playerid,DIALOG_KLEIDUNG_PRO,DIALOG_STYLE_LIST,"Pro Labs","Orange 12 Preis: 50€\nRockstar Grey Preis: 30€\nBase 5 Preis: 35€","Kaufen","Abbrechen");
}
}
//=========================Fraktion Waffenicons========================//if(pickupid == KLEIDUNG_ZIP)
{
if(PlayerToPoint(3.0,playerid,181.2543,-91.6659,1002.0234))
{
ShowPlayerDialog(playerid,DIALOG_KLEIDUNG_ZIP,DIALOG_STYLE_LIST,"ZIP","Schwarzer Anzug&Rote Krawatte Preis: 100€\nPfarrer Anzug Preis: 300€\nCobaine-Style Preis: 200€\nSchwarzer Anzug Preis: 100€\nBlaue Jacke Preis: 120€\nBlauer Gestreifter Anzug Preis: 180€","Kaufen","Abbrechen");
}
}
return 1;
}Function OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:CurrentMenu = GetPlayerMenu(playerid);
/*if(CurrentMenu == BOMB)
{
switch(row)//rot,gelb,grün,blau
{
case 0://rot
{
GetPlayerPos(playerid, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]);
SendClientMessage(playerid, COLOR_LIGHTRED, "Bombe wurde gelegt! Du hast den ROTEN Draht genommen!");
bombe = CreateDynamicObject(1719, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]-0.85, 0.0000, 0.0000, 0.0000);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
bombexplotimer = SetTimerEx("bombexplode",300000,0,"i",playerid);
//BombStatus = 1;
Bombactivated=1;
bombdrahtchoosen = 1;
// PlayerInfo[playerid][pSprengstoff] -= 1;
bombdraht1 = 1;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsACop(i))
{
SendClientMessage(i,COLOR_RED,"BOMBENALARM: Es wurde eine Bombe gelegt!");
bombzone = GangZoneCreate(PlayerExplosionX[1]-random(60), PlayerExplosionY[1]-random(60), PlayerExplosionX[1]+random(60), PlayerExplosionY[1]+random(60));
GangZoneShowForPlayer(i,bombzone,COLOR_RED);
GangZoneFlashForPlayer(i,bombzone,COLOR_GREEN);
if(IsPlayerInFrac(i, 22))
{
SendClientMessage(i, COLOR_RED, "ZENTRALE: Es wurde eine Bombe gelegt!");
SendClientMessage(i, COLOR_RED, "ZENTRALE: Das Gebiet blinkt rot - grün.");
SendClientMessage(i, COLOR_RED, "ZENTRALE: Begeben sie sich sofort zur Basis!");
GangZoneShowForPlayer(i,bombzone,COLOR_RED);
GangZoneFlashForPlayer(i,bombzone,COLOR_GREEN);
}
}
}
}
case 1://gelb maul kadoffel
{
GetPlayerPos(playerid, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]);
SendClientMessage(playerid, COLOR_LIGHTRED, "Bombe wurde gelegt! Du hast den GELBEN Draht genommen!");
bombe = CreateDynamicObject(1719, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]-0.85, 0.0000, 0.0000, 0.0000);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
bombexplotimer = SetTimerEx("bombexplode",300000,0,"i",playerid);
//BombStatus = 1;
Bombactivated=1;
bombdrahtchoosen = 1;
//PlayerInfo[playerid][pSprengstoff] -= 1;
bombdraht1 = 0;
bombdraht2 = 1;
bombdraht3 = 0;
bombdraht4 = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsACop(i))
{
SendClientMessage(i,COLOR_RED,"BOMBENALARM: Die Terroristen haben zugeschlagen! Eine Bombe wurde gelegt!");
bombzone = GangZoneCreate(PlayerExplosionX[1]-random(60), PlayerExplosionY[1]-random(60), PlayerExplosionX[1]+random(60), PlayerExplosionY[1]+random(60));
GangZoneShowForPlayer(i,bombzone,COLOR_RED);
GangZoneFlashForPlayer(i,bombzone,COLOR_GREEN);
}
}
}
case 2://grün
{
GetPlayerPos(playerid, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]);
SendClientMessage(playerid, COLOR_LIGHTRED, "Bombe wurde gelegt! Du hast den GRÜNEN Draht genommen!");
bombe = CreateDynamicObject(1719, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]-0.85, 0.0000, 0.0000, 0.0000);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
bombexplotimer = SetTimerEx("bombexplode",300000,0,"i",playerid);
//BombStatus = 1;
Bombactivated=1;
bombdrahtchoosen = 1;
// PlayerInfo[playerid][pSprengstoff] -= 1;
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 1;
bombdraht4 = 0;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsACop(i))
{
SendClientMessage(i,COLOR_RED,"BOMBENALARM: Es wurde eine Bombe gelegt!");
bombzone = GangZoneCreate(PlayerExplosionX[1]-random(60), PlayerExplosionY[1]-random(60), PlayerExplosionX[1]+random(60), PlayerExplosionY[1]+random(60));
GangZoneShowForPlayer(i,bombzone,COLOR_RED);
GangZoneFlashForPlayer(i,bombzone,COLOR_GREEN);
}
}
}
case 3://blau
{
GetPlayerPos(playerid, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]);
SendClientMessage(playerid, COLOR_LIGHTRED, "Bombe wurde gelegt! Du hast den BLAUEN Draht genommen!");
bombe = CreateDynamicObject(1719, PlayerExplosionX[1], PlayerExplosionY[1], PlayerExplosionZ[1]-0.85, 0.0000, 0.0000, 0.0000);
ApplyAnimation(playerid, "BOMBER", "BOM_Plant", 4.0, 0, 0, 0, 0, 0);
bombexplotimer = SetTimerEx("bombexplode",300000,0,"i",playerid);
//BombStatus = 1;
Bombactivated=1;
bombdrahtchoosen = 1;
// PlayerInfo[playerid][pSprengstoff] -= 1;
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 1;
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsACop(i))
{
SendClientMessage(i,COLOR_RED,"Anschlag! Es wurde eine Bombe gelegt!!");
bombzone = GangZoneCreate(PlayerExplosionX[1]-random(60), PlayerExplosionY[1]-random(60), PlayerExplosionX[1]+random(60), PlayerExplosionY[1]+random(60));
GangZoneShowForPlayer(i,bombzone,COLOR_RED);
GangZoneFlashForPlayer(i,bombzone,COLOR_GREEN);
}
}
}
}
}
if(CurrentMenu == BOMBD && bombdrahtchoosen == 1)
{
switch(row)//rot,gelb,grün,blau
{
case 0://rot
{//&& bombdraht2 = 0 || bombdraht3 = 0 || bombdraht4 && 0
if(bombdraht1 == 1)
{
Bombtimer(3,playerid);
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 1;
}
else if(bombdraht1 == 0)
{
bombexplode(playerid);
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 1;
}
bombdrahtchoosen = 0;
}
case 1://gelb
{
bombdrahtchoosen = 0;
if(bombdraht2 == 1)
{
Bombtimer(3,playerid);
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 1;
}
else if(bombdraht2 == 0)
{
bombexplode(playerid);
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 1;
}
}
case 2://grün
{
bombdrahtchoosen = 0;
if(bombdraht3 == 1)
{
Bombtimer(3,playerid);
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 1;
}
else if(bombdraht3 == 0)
{
bombexplode(playerid);
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 1;
}
}
case 3://blau
{
bombdrahtchoosen = 0;
if(bombdraht4 == 1)
{
Bombtimer(3,playerid);
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 1;
}
else if(bombdraht4 == 0)
{
bombexplode(playerid);
bombdraht1 = 0;
bombdraht2 = 0;
bombdraht3 = 0;
bombdraht4 = 1;
}
}
}
}*/ -
Habe die CreateExplosion usw dinge ausgeschaltet trotzdem explodieren die Pickups
-
AddStaticPickup(1318, 10,1081.2441,-1697.1636,13.5469,-1);//Fahrschule Enter
AddStaticPickup(1239, 10,2442.4827,-1981.3990,13.5469,-1);//Information PickupDie 2 explodieren
-
Function OnPlayerPickUpPickup(playerid,pickupid)
{if(pickupid == versteckup)
{
SetTimer("versteck", 300000, 1);
}
if(pickupid == port)
{
SetPlayerPos(playerid, 189.3784,179.2099,1003.0234);
SetPlayerInterior(playerid, 3);
GameTextForPlayer(playerid,"~g~Willkommen im LSPD",4000,3);
} -
Hallo Leute
Ich habe ein super mega Problem
Wenn ich paar Pickups im Script erstelle 2 von denen Explodieren ingame einfach so wenn ich neben dran stehe
Am Anfang war es so dass ich ne deagle mit 40 muni bekommen habe dann habe ich das DeagleDrop system gelöscht und jetzt ist es noch schlimmer ich
bekomme keine verbuggt deagle sondern der scheiss pickup explodiertWo kann das liegen????
-
Hallo Leute
Ich suche ein Trucker NebenJob System. Es soll halt so sein dass man als Trucker einen Anhänger nehmen soll dann zu nen Punkt fahren soll Die Paketen laden da
soll halt nur ein ClientMessage sein Anhänger geladen. Und dann soll einfach man zu nen Punkt fahren wo man den Anhänger abladet und das Geld bekommt -
-
Verstehe nicht was du meinst Wolf
-
Das Sellcar system ist halt als Autohändler Beruf gemacht aber ich will es so ändern das man nicht den Job haben muss und dass man sein Privat Car verkaufen kann
Pastebin Link: http://pastebin.com/ayacE8pg
-
Die 2 weiter kommen auf jeden Fall nicht unter onplayerdeath ich habe es extra so gemacht weil da GW_Onplayerspawn dabei ist das hat halt mit den Gangs/Mafien nur zu tun
Man spawnt als Gang/Mafia nur im Gebiet ins Krankenhaus außerhalb spawnt man nach 2 sek in der base ich denke das hat was mit GW_OnPlayerDeath zu tun
Endwieder GW_OnPlayerDeath oder GW_OnPlayerSpawn eins von beiden denke ich
Ich habe euch alle beide Funktionen gesendet -
Hallo Leute
Bei mir ist es so das alle Fraktionen außer die Fraktionen die Gangwar starten können nach dem Tod im Krankenhaus für 60 Sek spawnen.
Ich will es so machen das man auch als Gang/Mafia auch nach dem Tod im Krankenhaus spawnt aber das geht einfach garnicht.
Die Gangs/Mafien werden nur im Gangwar Gebiet nach dem Tod im Krankenhaus gespawnt aber außerhalb spawnen die nach 2 sek in der Base wieder.Ich habe 0 Ahnung wo das im Script liegen konnte.
Hat jemand eine Idde?
Function OnPlayerDeath(playerid, killerid, reason){ SetPlayerCameraPos(playerid,1997.0121,-1450.9044,44.1359); SetPlayerCameraLookAt(playerid,1999.7771,-1447.8638,44.1359); SetPlayerColor(playerid,TEAM_HIT_COLOR); ResetPlayerWeapons(playerid); SetPlayerPos(playerid,2069.4993,-1415.4385,23.4259 ); SetPlayerInterior(playerid, 0); GW_OnPlayerDeath(playerid, killerid, reason); M_OnPlayerDeath(playerid, killerid, reason); new Float:x,Float:y,Float:z; GetPlayerPos(playerid,x,y,z); if(GetPlayerWeapon(playerid) == 24) { //Deagle DeagleDrop = CreatePickup(348,4,x,y,z); }Function OnPlayerSpawn(playerid){//NPC BOTif(IsPlayerNPC(playerid)) return 1;
Spawned[playerid] = 1; if (PlayerInfo[playerid][pAdmin] > 0)//:D { TextDrawShowForPlayer(playerid,OTickets[playerid]); } TextDrawHideForPlayer(playerid,WelcomeOne); TextDrawShowForPlayer(playerid, ForumAnzeige1); TextDrawShowForPlayer(playerid, ForumAnzeige2); TextDrawShowForPlayer(playerid, ForumAnzeige3); TextDrawShowForPlayer(playerid,Uhrzeit); TextDrawShowForPlayer(playerid,Datum); GW_OnPlayerSpawn(playerid); SetTimer("Krankenhaus", 10000, 0); M_OnPlayerSpawn(playerid); TextDrawShowForPlayer(playerid,Copyright); if(PlayerInfo[playerid][pTot] == 1) { SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_WHITE, " "); SendClientMessage(playerid, COLOR_GREEN, "Los Santos Krankenhaus "); SendClientMessage(playerid, COLOR_WHITE, "Du bist nun im Krankenhaus"); SendClientMessage(playerid, COLOR_WHITE, "Die Ärzte werden dir helfen"); SendClientMessage(playerid, COLOR_WHITE, "Du wirst in 60 Sekunden Wiederbelebt"); SetPlayerSpawn(playerid); if(IsPlayerInFrac(playerid, 1)) { SetPlayerColor(playerid,NAMECOLOR_LSCOP); } else if(IsPlayerInFrac(playerid, 4)) { SetPlayerColor(playerid, NAMECOLOR_MEDIC); } else { SetPlayerColor(playerid,TEAM_HIT_COLOR); } ResetPlayerWeapons(playerid); return 1; }forward GW_OnPlayerSpawn(playerid);public GW_OnPlayerSpawn(playerid){ if(!GetPVarInt(playerid,"Spawned")){ SetPVarInt(playerid,"Spawned",1); for(new fs;fs<sizeof(FightSystem);fs++){ if(FightSystem[fs][fsAttackFaction] != -255 && FightSystem[fs][fsFightTime]){ GangZoneFlashForPlayer(playerid,FightSystem[fs][fsZoneID],GetZoneColorOfFaction(FightSystem[fs][fsAttackFaction])); if(GetPlayerFaction(playerid) == FightSystem[fs][fsOwnerFaction] || GetPlayerFaction(playerid) == FightSystem[fs][fsAttackFaction]){ TextDrawShowForPlayer(playerid,Fight); TextDrawShowForPlayer(playerid,FightSystem[fs][fsWinFaction]); TextDrawShowForPlayer(playerid,FightSystem[fs][fsLoseFaction]); TextDrawShowForPlayer(playerid,FightSystem[fs][fsWinKills]); TextDrawShowForPlayer(playerid,FightSystem[fs][fsLoseKills]); } } } }return 1;}
-
Danke dir :)))))
Frohe Weihnachten
-
Hallo Leute
Ich würde gerne eine Sirene für Bullet scripten. Die Sirene soll halt nur für Cops sein.
Sirene ID: 19419
Bullet ID: 541
Wies soll es aussehen =
http://www.pic-upload.de/view-25646966/Sirene.png.html
Wie mache ich das?? Hat jemand eine Idde?
-
Ohje ich musste nur setobjectrot und einfach die 2 Cords einfügen xD
Trotzdem Danke
Schöne Weihnachtszeiten noch
-
Was soll ich da lernen ?????
Erstens die schranke wird nicht von x y z gemoved sondern von R-Y
Also die x y z bleibt so gleich nur die R-Y muss gemoved werden.
-
Ich würde gerne das die Schranke auf und zu geht. Im Script füge ich die kordinaten ein aber trotzdem funkzuniert es nicht.
AUF: http://www.pic-upload.de/view-25638885/sa-mp-006.png.html
ZU: http://www.pic-upload.de/view-25638884/sa-mp-005.png.html
Wie habe ich es gemacht:
new MVTor9;
MVTor9 = CreateDynamicObject(968, 1544.69604, -1630.90295, 13.11210, 0.00000, 90.00000, 90.00000);
if(strcmp(cmd,"/Schranke", true) == 0) { if(IsACop(playerid) || IsPlayerInFrac(playerid, 22)) { MoveDynamicObject(MVTor9, 1544.69604,-1630.90295,13.11210,0.00000,0.00000,3.0); SetTimer("CloseMVTor9", 5000, 0); SendClientMessage(playerid, COLOR_YELLOW,"Schranke geöffnet"); } else SendClientMessage(playerid, 0xFF6347AA, "Du hast nicht die Erlaubnis dazu!"); return 1; }Function CloseMVTor9(){ MoveDynamicObject(MVTor9,1544.69604,-1630.90295, 13.11210,0.00000,90.00000, 3.0);return 1;}
Wie mache ich es richtig??
-
Habe diesen Motor Start System was muss ich einfügen damit das Auto bei 300hp Motorschaden bekommt?
Z.B Motor kann nicht gestartet werden weil das Auto ein Motorschaden hat.
if(strcmp(cmd, "/motor",true) == 0)
{
if(PlayerInfo[playerid][pTot] == 1)
{
SendClientMessage(playerid, COLOR_GREY, "Tote können keine Befehle nutzen!");
return 1;
}
if(IsANoTachoVehicle(GetPlayerVehicleID(playerid)))
{
SendClientMessage(playerid, COLOR_RED, "{FFFFFF}Fahrräder haben keinen Motor!");
return 1;
}
if(GetPlayerState(playerid) != PLAYER_STATE_DRIVER) return 1;
new engine,lights,alarm,doors,bonnet,boot,objective;
new vid = GetPlayerVehicleID(playerid);
GetVehicleParamsEx(vid,engine,lights,alarm,doors,bonnet,boot,objective);
if(vid != INVALID_VEHICLE_ID)
{
if(engine == VEHICLE_PARAMS_ON)
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_OFF,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, 0xEBFF00FF, "Motor ist aus.");
}
else
{
SetVehicleParamsEx(vid,VEHICLE_PARAMS_ON,lights,alarm,doors,bonnet,boot,objective);
SendClientMessage(playerid, 0xEBFF00FF, "Motor wurde Gestartet.");
}}
return 1;
}Kann jemand Helfen??
-
Großes Mega LOB an euch Leute danke sehr endlich habe ich es geschafft
-
Ich habe diese Version soll ich alle objecte in dynamic machen?