Szerző Téma: fallout segítség!  (Megtekintve 516 alkalommal)

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
fallout segítség!
« Dátum: 2012. Szeptember 25. - 21:06:26 »
0 Show voters
Szóval, szeretnek készíteni egy saját fallout rendszert amit jól bemappoltam meg minden és nagyon jól, de lenne egy gondom nem tudom, hogyan kezdjem meg az egész fallotot valaki egy leírást írna, hogy legalább az objectek ha leesenek és, hogy egy bizonyos személy aki utolsó volt az nyerjen ...? Elõre köszönöm szép estét!

Dupla hozzászólás automatikusan összefûzve. ( 2012. Szeptember 26. - 14:37:54 )

valaki?  :-[
« Utoljára szerkesztve: 2012. Szeptember 26. - 14:37:54 írta ZyZu »

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
fallout segítség!
« Válasz #1 Dátum: 2012. Szeptember 29. - 15:52:50 »
0 Show voters
senki sem?  :unsure:

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
fallout segítség!
« Válasz #2 Dátum: 2012. Szeptember 29. - 16:14:15 »
0 Show voters
írjon azért valaki kérem.. vagy egy leírást.  :-[

Nem elérhető divkn

  • 3259
    • Profil megtekintése
fallout segítség!
« Válasz #3 Dátum: 2012. Szeptember 29. - 16:20:18 »
+1 Show voters
Talán még megvan a Play1Night fallout módja.
* Nem teszteltem a módot, de mindjárt leelenõrzöm.
* Most már jó.
 

#include <a_samp>
#include <dini>
#define FILENAME \"points.txt\"
new bool:newround = false, fallobj[100], bool:fell[100], bool:gmx = true;
new living[MAX_PLAYERS], specing[MAX_PLAYERS], points[MAX_PLAYERS];
new Text:Textdraw0;
new Text:Textdraw1;
new Text:Textdraw2;
new Text:Textdraw3;
new Text:Textdraw4;
new Text:Textdraw5;
new Text:Textdraw6;
new Text:Textdraw7;
new Text:Textdraw8;
new Text:Textdraw9;
new Text:Textdraw10;
new Text:Textdraw11;
new Text:Textdraw12;
main(){
print(\"SECOND PLAY 1 NIGHT - FALLOUT\");
}
public OnGameModeInit(){
SetGameModeText(\"Second Play 1 Night\");
UsePlayerPedAnims();
SetWorldTime(12);
SetWeather(91);
for(new s = 0; s < 300; s++) if(IsValidSkin(s)) AddPlayerClass(s, 1958.3783, 1343.1572, 215.3746, 269.1425, 0, 0, 0, 0, 0, 0);
for(new i = 0; i < MAX_PLAYERS; i++) specing = -1;
CreateObject(6300,3630.50000000,-3792.37109375,161.31254578,0.00000000,0.00000000,0.00000000); //object(pier04_law2) (1)
CreateObject(12950,3606.23071289,-3805.11767578,168.87357330,0.00000000,0.00000000,272.00000000); //object(cos_sbanksteps03) (1)
CreateObject(6300,3639.81250000,-3766.96411133,164.21260071,0.00000000,0.00000000,0.00000000); //object(pier04_law2) (2)
CreateObject(17511,3630.46044922,-3773.48559570,176.55287170,90.00000000,180.00000000,180.00000000); //back xd
CreateObject(8399,3596.15136719,-3813.04101562,174.10755920,0.00000000,270.00000000,179.99450684); //object(nightclub01_lvs) (1)
CreateObject(8399,3599.85351562,-3835.25195312,174.10755920,0.00000000,270.00000000,270.00000000); //object(nightclub01_lvs) (3)
CreateObject(8399,3625.89550781,-3835.24194336,174.10755920,0.00000000,270.00000000,270.00000000); //object(nightclub01_lvs) (4)
CreateObject(8399,3651.96166992,-3835.25976562,174.10755920,0.00000000,270.00000000,270.00000000); //object(nightclub01_lvs) (5)
CreateObject(8399,3665.36230469,-3825.19921875,174.10755920,0.00000000,270.00000000,0.00000000); //object(nightclub01_lvs) (6)
CreateObject(8399,3665.36645508,-3807.13867188,174.10755920,0.00000000,270.00000000,0.00000000); //object(nightclub01_lvs) (7)
CreateObject(8399,3596.13012695,-3791.78588867,174.10755920,0.00000000,270.00000000,179.99450684); //object(nightclub01_lvs) (8)
CreateObject(1432,3614.99877930,-3815.02734375,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (1)
CreateObject(1432,3619.26098633,-3815.12353516,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (2)
CreateObject(1432,3623.93212891,-3815.19360352,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (3)
CreateObject(1432,3628.74755859,-3815.15698242,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (4)
CreateObject(1432,3633.41845703,-3815.22680664,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (5)
CreateObject(1432,3638.33959961,-3815.30981445,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (6)
CreateObject(1432,3643.50634766,-3815.41748047,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (7)
CreateObject(1432,3648.62011719,-3815.41967773,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (8)
CreateObject(1432,3614.98950195,-3819.78540039,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (9)
CreateObject(1432,3619.09936523,-3819.82470703,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (10)
CreateObject(1432,3623.52636719,-3819.87768555,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (11)
CreateObject(1432,3628.43750000,-3819.90356445,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (12)
CreateObject(1432,3633.09814453,-3819.91845703,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (13)
CreateObject(1432,3638.06909180,-3819.98657227,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (14)
CreateObject(1432,3643.23681641,-3819.92895508,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (15)
CreateObject(1432,3648.38378906,-3819.96972656,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (16)
CreateObject(1432,3614.86450195,-3823.74633789,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (17)
CreateObject(1432,3619.06884766,-3823.78417969,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (18)
CreateObject(1432,3623.34667969,-3823.76782227,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (19)
CreateObject(1432,3628.25195312,-3823.71777344,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (20)
CreateObject(1432,3632.95727539,-3823.67822266,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (21)
CreateObject(1432,3637.88720703,-3823.62670898,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (22)
CreateObject(1432,3643.04101562,-3823.64111328,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (23)
CreateObject(1432,3647.99438477,-3823.44897461,169.36138916,0.00000000,0.00000000,0.00000000); //object(dyn_table_2) (24)
CreateObject(16151,3659.52758789,-3818.84228516,169.71725464,0.00000000,0.00000000,0.00000000); //object(ufo_bar) (1)
CreateObject(6300,3628.32714844,-3827.18945312,189.81254578,179.99450684,0.00000000,0.00000000); //object(pier04_law2) (3)
CreateObject(2934,3605.79589844,-3827.54101562,167.91897583,0.00000000,0.00000000,0.00000000); //object(kmb_container_red) (1)
CreateObject(2934,3605.80175781,-3820.50292969,167.91897583,0.00000000,0.00000000,0.00000000); //object(kmb_container_red) (2)
CreateObject(2934,3605.80493164,-3813.44140625,167.91897583,0.00000000,0.00000000,0.00000000); //object(kmb_container_red) (3)
CreateObject(2934,3605.81250000,-3806.99707031,167.91897583,0.00000000,0.00000000,0.00000000); //object(kmb_container_red) (4)
CreateObject(2959,3606.52246094,-3830.47216797,169.37239075,0.00000000,0.00000000,90.00000000); //object(rider1_door) (1)
CreateObject(2232,3659.52929688,-3805.43066406,170.10225677,0.00000000,0.00000000,315.00000000); //object(med_speaker_4) (1)
CreateObject(2232,3602.49536133,-3804.95288086,169.96511078,0.00000000,0.00000000,45.00000000); //object(med_speaker_4) (2)
CreateObject(2232,3601.48828125,-3829.85131836,169.95926666,0.00000000,0.00000000,135.00000000); //object(med_speaker_4) (3)
CreateObject(2232,3660.01928711,-3829.50146484,169.95926666,0.00000000,0.00000000,225.00000000); //object(med_speaker_4) (4)
CreateObject(948,3659.25732422,-3809.81005859,169.36723328,0.00000000,0.00000000,0.00000000); //object(plant_pot_10) (1)
CreateObject(949,3659.47753906,-3811.18798828,170.00351715,0.00000000,0.00000000,0.00000000); //object(plant_pot_4) (1)
Textdraw0 = TextDrawCreate(67.000000, 118.000000, \"O\");
TextDrawBackgroundColor(Textdraw0, 255);
TextDrawFont(Textdraw0, 1);
TextDrawLetterSize(Textdraw0, 6.049998, 23.700000);
TextDrawColor(Textdraw0, -16776961);
TextDrawSetOutline(Textdraw0, 0);
TextDrawSetProportional(Textdraw0, 1);
TextDrawSetShadow(Textdraw0, 1);
Textdraw1 = TextDrawCreate(120.000000, 183.000000, \"/\");
TextDrawBackgroundColor(Textdraw1, 255);
TextDrawFont(Textdraw1, 1);
TextDrawLetterSize(Textdraw1, 4.049998, 9.100000);
TextDrawColor(Textdraw1, -16776961);
TextDrawSetOutline(Textdraw1, 0);
TextDrawSetProportional(Textdraw1, 1);
TextDrawSetShadow(Textdraw1, 1);
Textdraw2 = TextDrawCreate(102.000000, 171.000000, \"FAIR PLAY\");
TextDrawBackgroundColor(Textdraw2, 255);
TextDrawFont(Textdraw2, 1);
TextDrawLetterSize(Textdraw2, 0.579999, 2.799999);
TextDrawColor(Textdraw2, -1);
TextDrawSetOutline(Textdraw2, 0);
TextDrawSetProportional(Textdraw2, 1);
TextDrawSetShadow(Textdraw2, 1);
Textdraw3 = TextDrawCreate(99.000000, 197.000000, \"NO RP\");
TextDrawBackgroundColor(Textdraw3, 255);
TextDrawFont(Textdraw3, 3);
TextDrawLetterSize(Textdraw3, 1.129999, 6.299996);
TextDrawColor(Textdraw3, -936234241);
TextDrawSetOutline(Textdraw3, 0);
TextDrawSetProportional(Textdraw3, 1);
TextDrawSetShadow(Textdraw3, 1);
Textdraw4 = TextDrawCreate(88.000000, 268.000000, \"SECOND PLAY 1 NIGHT\");
TextDrawBackgroundColor(Textdraw4, 255);
TextDrawFont(Textdraw4, 1);
TextDrawLetterSize(Textdraw4, 0.579999, 2.799999);
TextDrawColor(Textdraw4, -1);
TextDrawSetOutline(Textdraw4, 0);
TextDrawSetProportional(Textdraw4, 1);
TextDrawSetShadow(Textdraw4, 1);
Textdraw5 = TextDrawCreate(424.000000, 141.000000, \"Event 1: Fallout\");
TextDrawBackgroundColor(Textdraw5, 255);
TextDrawFont(Textdraw5, 0);
TextDrawLetterSize(Textdraw5, 0.509999, 1.600000);
TextDrawColor(Textdraw5, -1);
TextDrawSetOutline(Textdraw5, 1);
TextDrawSetProportional(Textdraw5, 1);
TextDrawUseBox(Textdraw5, 1);
TextDrawBoxColor(Textdraw5, -2030010027);
TextDrawTextSize(Textdraw5, 613.000000, 8.000000);
Textdraw6 = TextDrawCreate(424.000000, 160.000000, \"Üdv!~n~Ez a játék egyszerû: ne hagyd, hogy magával vigyen az eltûnö padló!\");
TextDrawBackgroundColor(Textdraw6, 255);
TextDrawFont(Textdraw6, 1);
TextDrawLetterSize(Textdraw6, 0.290000, 1.400000);
TextDrawColor(Textdraw6, -1);
TextDrawSetOutline(Textdraw6, 1);
TextDrawSetProportional(Textdraw6, 1);
TextDrawUseBox(Textdraw6, 1);
TextDrawBoxColor(Textdraw6, 102);
TextDrawTextSize(Textdraw6, 613.000000, 640.000000);
Textdraw7 = TextDrawCreate(421.000000, 359.000000, \"Objectek\");
TextDrawBackgroundColor(Textdraw7, 255);
TextDrawFont(Textdraw7, 0);
TextDrawLetterSize(Textdraw7, 0.509998, 1.600000);
TextDrawColor(Textdraw7, -1);
TextDrawSetOutline(Textdraw7, 1);
TextDrawSetProportional(Textdraw7, 1);
TextDrawUseBox(Textdraw7, 1);
TextDrawBoxColor(Textdraw7, -2030010027);
TextDrawTextSize(Textdraw7, 477.000000, 8.000000);
Textdraw8 = TextDrawCreate(484.000000, 359.000000, \"Játékosok\");
TextDrawBackgroundColor(Textdraw8, 255);
TextDrawFont(Textdraw8, 0);
TextDrawLetterSize(Textdraw8, 0.509998, 1.600000);
TextDrawColor(Textdraw8, -1);
TextDrawSetOutline(Textdraw8, 1);
TextDrawSetProportional(Textdraw8, 1);
TextDrawUseBox(Textdraw8, 1);
TextDrawBoxColor(Textdraw8, -2030010027);
TextDrawTextSize(Textdraw8, 545.000000, 8.000000);
Textdraw9 = TextDrawCreate(552.000000, 359.000000, \"Életben van\");
TextDrawBackgroundColor(Textdraw9, 255);
TextDrawFont(Textdraw9, 0);
TextDrawLetterSize(Textdraw9, 0.509998, 1.600000);
TextDrawColor(Textdraw9, -1);
TextDrawSetOutline(Textdraw9, 1);
TextDrawSetProportional(Textdraw9, 1);
TextDrawUseBox(Textdraw9, 1);
TextDrawBoxColor(Textdraw9, -2030010027);
TextDrawTextSize(Textdraw9, 624.000000, 8.000000);
Textdraw10 = TextDrawCreate(449.000000, 378.000000, \"#\");
TextDrawAlignment(Textdraw10, 2);
TextDrawBackgroundColor(Textdraw10, 255);
TextDrawFont(Textdraw10, 1);
TextDrawLetterSize(Textdraw10, 0.880000, 4.200000);
TextDrawColor(Textdraw10, -1);
TextDrawSetOutline(Textdraw10, 0);
TextDrawSetProportional(Textdraw10, 1);
TextDrawSetShadow(Textdraw10, 1);
TextDrawUseBox(Textdraw10, 1);
TextDrawBoxColor(Textdraw10, 51);
TextDrawTextSize(Textdraw10, 26.000000, 56.000000);
Textdraw11 = TextDrawCreate(514.500000, 378.000000, \"#\");
TextDrawAlignment(Textdraw11, 2);
TextDrawBackgroundColor(Textdraw11, 255);
TextDrawFont(Textdraw11, 1);
TextDrawLetterSize(Textdraw11, 0.880000, 4.200000);
TextDrawColor(Textdraw11, -1);
TextDrawSetOutline(Textdraw11, 0);
TextDrawSetProportional(Textdraw11, 1);
TextDrawSetShadow(Textdraw11, 1);
TextDrawUseBox(Textdraw11, 1);
TextDrawBoxColor(Textdraw11, 51);
TextDrawTextSize(Textdraw11, 36.000000, 61.000000);
Textdraw12 = TextDrawCreate(588.000000, 378.000000, \"#\");
TextDrawAlignment(Textdraw12, 2);
TextDrawBackgroundColor(Textdraw12, 255);
TextDrawFont(Textdraw12, 1);
TextDrawLetterSize(Textdraw12, 0.880000, 4.200000);
TextDrawColor(Textdraw12, -1);
TextDrawSetOutline(Textdraw12, 0);
TextDrawSetProportional(Textdraw12, 1);
TextDrawSetShadow(Textdraw12, 1);
TextDrawUseBox(Textdraw12, 1);
TextDrawBoxColor(Textdraw12, 51);
TextDrawTextSize(Textdraw12, 39.000000, 72.000000);
SetTimer(\"NextRound\", 100, false);
SetTimer(\"CountDown\", 500, true);
return true;
}
public OnPlayerConnect(playerid){
    new query[128];
GetPlayerName(playerid, query, 128);
if(dini_Isset(FILENAME, query))
{
    points[playerid] = dini_Int(FILENAME, query);
    } else {
    dini_IntSet(FILENAME, query, 0);
}
living[playerid] = false;
TextDrawShowForPlayer(playerid, Textdraw7);
TextDrawShowForPlayer(playerid, Textdraw8);
TextDrawShowForPlayer(playerid, Textdraw9);
TextDrawShowForPlayer(playerid, Textdraw10);
TextDrawShowForPlayer(playerid, Textdraw11);
TextDrawShowForPlayer(playerid, Textdraw12);
specing[playerid] = -1;
SendDeathMessage(INVALID_PLAYER_ID, playerid, 200);
return true;
}
public OnPlayerDisconnect(playerid, reason){
    new query[128];
GetPlayerName(playerid, query, 128);
dini_IntSet(FILENAME, query, points[playerid]);
    specing[playerid] = -1;
    if(IsPlayerInAnyVehicle(playerid)){
new id = GetPlayerVehicleID(playerid);
DestroyVehicle(id);
}
SendDeathMessage(INVALID_PLAYER_ID, playerid, 201);
return true;
}
public OnGameModeExit(){
for(new playerid; playerid < GetMaxPlayers(); playerid++){
    if(IsPlayerConnected(playerid)){
        new query[128];
   GetPlayerName(playerid, query, 128);
   dini_IntSet(FILENAME, query, points[playerid]);
    }
}
return true;
}
public OnPlayerRequestClass(playerid, classid){
SetPlayerPos(playerid, 3627.1437988281, -3797.6691894531,173.267288208008);
SetPlayerCameraPos(playerid, 3622.650390625, -3806.1662597656, 175.192405700684);
SetPlayerCameraLookAt(playerid, 3627.1437988281, -3797.6691894531,173.267288208008);
SetPlayerFacingAngle(playerid, 135.0);
ApplyAnimation(playerid,\"DANCING\",\"dnce_M_a\",4.0,1,0,0,0,-1);
TextDrawShowForPlayer(playerid, Textdraw0);
TextDrawShowForPlayer(playerid, Textdraw1);
TextDrawShowForPlayer(playerid, Textdraw2);
TextDrawShowForPlayer(playerid, Textdraw3);
TextDrawShowForPlayer(playerid, Textdraw4);
TextDrawShowForPlayer(playerid, Textdraw5);
TextDrawShowForPlayer(playerid, Textdraw6);
return true;
}
public OnPlayerSpawn(playerid){
if(!living[playerid]){
    TogglePlayerSpectating(playerid, true);
    living[playerid] = true;
TogglePlayerSpectating(playerid, false);
return true;
}
if(IsPlayerInAnyVehicle(playerid)){
new id = GetPlayerVehicleID(playerid);
DestroyVehicle(id);
}
SetCameraBehindPlayer(playerid);
     printf(\"DEBUG: ID %d spawned\", playerid);
SetPlayerPos(playerid, 2482.1921 - random(39), -1660.4783 + random(47), 162.0000);
SetPlayerFacingAngle(playerid, random(360));
TextDrawHideForPlayer(playerid, Textdraw0);
TextDrawHideForPlayer(playerid, Textdraw1);
TextDrawHideForPlayer(playerid, Textdraw2);
TextDrawHideForPlayer(playerid, Textdraw3);
TextDrawHideForPlayer(playerid, Textdraw4);
TextDrawHideForPlayer(playerid, Textdraw5);
TextDrawHideForPlayer(playerid, Textdraw6);
return true;
}
public OnPlayerUpdate(playerid){
if(!newround && living[playerid]){
new Float:X, Float:Y, Float:Z;
GetPlayerPos(playerid, X, Y, Z);
if(Z < 150.0){
   printf(\"DEBUG: ID %d knocked out, put in Spec\", playerid);
   new outstr[128];
   GetPlayerName(playerid, outstr, 128);
   format(outstr, 128, \"{FFCC33}%s {CC33FF}kiesett...\", outstr);
   SendClientMessageToAll(0xCC33FFFF, outstr);
   living[playerid] = false;
   if(IsPlayerInAnyVehicle(playerid)){
      new id = GetPlayerVehicleID(playerid);
      DestroyVehicle(id);
   }
   for(new i; i < GetMaxPlayers(); i++){
      if(specing == playerid){
          specing++;
          while(!living[specing]){
            specing++;
            if(specing > GetMaxPlayers()-1) specing = 0;
         }
         PlayerSpectatePlayer(i, specing);
      }
   }
   new count = 0;
   for(new i; i < GetMaxPlayers(); i++) if(living) count++;
   printf(\"DEBUG: Player alive count is %d\", count);
   SetPlayerPos(playerid, 100.0, 100.0, 200.0);
           TogglePlayerSpectating(playerid, true);
   specing[playerid] = 0;
   while(!living[specing[playerid]] && specing[playerid] < GetMaxPlayers()) specing[playerid]++;
   PlayerSpectatePlayer(playerid, specing[playerid]);
    if(count < 2){
        newround = true;
        SetTimer(\"NextRound\", 3000, false);
        for(new i; i < GetMaxPlayers(); i++){
            if(living){
                new pName[MAX_PLAYER_NAME];
                GetPlayerName(i, pName, 128);
            format(outstr, 128, \"{CC33FF}A KÖRT {FFCC33}%s {CC33FF}NYERTE!\", pName);
            SendClientMessageToAll(0xCC33FFFF, outstr);
            points++;
            }
        }
     }
}
}
return true;
}
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys){
    if ((newkeys & KEY_FIRE) && !(oldkeys & KEY_FIRE)){
        if(!living[playerid]){
   specing[playerid]++;
   while(!living[specing[playerid]]){
      specing[playerid]++;
      if(specing[playerid] > GetMaxPlayers()-1) specing[playerid] = 0;
   }
   printf(\"DEBUG: ID %d changed Spec to ID %d\", playerid, specing[playerid]);
   PlayerSpectatePlayer(playerid, specing[playerid]);
        }
    }
}
forward CountDown();
public CountDown(){
    new c1, c2, outstr[16];
if(!newround){
new rand = random(99);
while(fell[rand]) rand = random(99);
printf(\"DEBUG: Object ID %d fell\", rand);
fell[rand] = true;
SetTimerEx(\"ShakeObj\", 200, false, \"ii\", rand, 0);
for(new i; i < 100; i++){
    if(!fell) c1++;
}
printf(\"DEBUG: Objects count is %d\", c1);
format(outstr, 16, \"%d\", c1);
TextDrawSetString(Textdraw10, outstr);
if(c1 <= 5){
        newround = true;
       SetTimer(\"NextRound\", 3000, false);
   SendClientMessageToAll(0xCC33FFFF, \"{CC33FF}A KÖRNEK {FFCC33}NINCS {CC33FF}NYERTESE!\");
}
}
c1 = 0;
for(new i; i < GetMaxPlayers(); i++){
    if(IsPlayerConnected(i)){
        c1++;
   if(living) c2++;
    }
}
format(outstr, 16, \"%d\", c1);
TextDrawSetString(Textdraw11, outstr);
format(outstr, 16, \"%d\", c2);
TextDrawSetString(Textdraw12, outstr);
return true;
}
forward ShakeObj(objectid, phase);
public ShakeObj(objectid, phase){
switch(phase){
       case 0: SetObjectRot(fallobj[objectid], 31.8, 2, 0);
case 1: SetObjectRot(fallobj[objectid], 33.8, 0, 0);
case 2: SetObjectRot(fallobj[objectid], 31.8, -2, 0);
case 3: SetObjectRot(fallobj[objectid], 29.8, 0, 0);
case 4: SetObjectRot(fallobj[objectid], 31.8, 0, 0);
case 5: {
   new Float:X, Float:Y, Float:Z;
   GetObjectPos(fallobj[objectid], X, Y, Z);
   MoveObject(fallobj[objectid], X, Y, Z - 100, 10.0);
}
case 6: DestroyObject(fallobj[objectid]);
}
if(phase < 5) SetTimerEx(\"ShakeObj\", 200, false, \"ii\", objectid, phase + 1);
if(phase == 5) SetTimerEx(\"ShakeObj\", 1500, false, \"ii\", objectid, phase + 1);
return true;
}
forward NextRound();
public NextRound(){
    for(new i; i < 100; i++){
if(!fell) DestroyObject(fallobj);
fell = false;
}
fallobj[0] = CreateObject(1697, 2482.1921, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[1] = CreateObject(1697, 2477.7395, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[2] = CreateObject(1697, 2473.2869, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[3] = CreateObject(1697, 2468.8343, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[4] = CreateObject(1697, 2464.3817, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[5] = CreateObject(1697, 2459.9291, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[6] = CreateObject(1697, 2455.4765, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[7] = CreateObject(1697, 2451.0239, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[8] = CreateObject(1697, 2446.5713, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[9] = CreateObject(1697, 2442.1187, -1660.4783, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[10] = CreateObject(1697, 2482.1921, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[11] = CreateObject(1697, 2477.7395, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[12] = CreateObject(1697, 2473.2869, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[13] = CreateObject(1697, 2468.8343, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[14] = CreateObject(1697, 2464.3817, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[15] = CreateObject(1697, 2459.9291, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[16] = CreateObject(1697, 2455.4765, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[17] = CreateObject(1697, 2451.0239, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[18] = CreateObject(1697, 2446.5713, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[19] = CreateObject(1697, 2442.1187, -1655.1112, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[20] = CreateObject(1697, 2482.1921, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[21] = CreateObject(1697, 2477.7395, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[22] = CreateObject(1697, 2473.2869, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[23] = CreateObject(1697, 2468.8343, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[24] = CreateObject(1697, 2464.3817, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[25] = CreateObject(1697, 2459.9291, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[26] = CreateObject(1697, 2455.4765, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[27] = CreateObject(1697, 2451.0239, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[28] = CreateObject(1697, 2446.5713, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[29] = CreateObject(1697, 2442.1187, -1649.7442, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[30] = CreateObject(1697, 2482.1921, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[31] = CreateObject(1697, 2477.7395, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[32] = CreateObject(1697, 2473.2869, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[33] = CreateObject(1697, 2468.8343, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[34] = CreateObject(1697, 2464.3817, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[35] = CreateObject(1697, 2459.9291, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[36] = CreateObject(1697, 2455.4765, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[37] = CreateObject(1697, 2451.0239, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[38] = CreateObject(1697, 2446.5713, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[39] = CreateObject(1697, 2442.1187, -1644.3772, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[40] = CreateObject(1697, 2482.1921, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[41] = CreateObject(1697, 2477.7395, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[42] = CreateObject(1697, 2473.2869, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[43] = CreateObject(1697, 2468.8343, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[44] = CreateObject(1697, 2464.3817, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[45] = CreateObject(1697, 2459.9291, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[46] = CreateObject(1697, 2455.4765, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[47] = CreateObject(1697, 2451.0239, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[48] = CreateObject(1697, 2446.5713, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[49] = CreateObject(1697, 2442.1187, -1639.0102, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[50] = CreateObject(1697, 2482.1921, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[51] = CreateObject(1697, 2477.7395, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[52] = CreateObject(1697, 2473.2869, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[53] = CreateObject(1697, 2468.8343, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[54] = CreateObject(1697, 2464.3817, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[55] = CreateObject(1697, 2459.9291, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[56] = CreateObject(1697, 2455.4765, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[57] = CreateObject(1697, 2451.0239, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[58] = CreateObject(1697, 2446.5713, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[59] = CreateObject(1697, 2442.1187, -1633.6432, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[60] = CreateObject(1697, 2482.1921, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[61] = CreateObject(1697, 2477.7395, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[62] = CreateObject(1697, 2473.2869, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[63] = CreateObject(1697, 2468.8343, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[64] = CreateObject(1697, 2464.3817, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[65] = CreateObject(1697, 2459.9291, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[66] = CreateObject(1697, 2455.4765, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[67] = CreateObject(1697, 2451.0239, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[68] = CreateObject(1697, 2446.5713, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[69] = CreateObject(1697, 2442.1187, -1628.2762, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[70] = CreateObject(1697, 2482.1921, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[71] = CreateObject(1697, 2477.7395, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[72] = CreateObject(1697, 2473.2869, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[73] = CreateObject(1697, 2468.8343, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[74] = CreateObject(1697, 2464.3817, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[75] = CreateObject(1697, 2459.9291, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[76] = CreateObject(1697, 2455.4765, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[77] = CreateObject(1697, 2451.0239, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[78] = CreateObject(1697, 2446.5713, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[79] = CreateObject(1697, 2442.1187, -1622.9092, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[80] = CreateObject(1697, 2482.1921, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[81] = CreateObject(1697, 2477.7395, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[82] = CreateObject(1697, 2473.2869, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[83] = CreateObject(1697, 2468.8343, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[84] = CreateObject(1697, 2464.3817, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[85] = CreateObject(1697, 2459.9291, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[86] = CreateObject(1697, 2455.4765, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[87] = CreateObject(1697, 2451.0239, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[88] = CreateObject(1697, 2446.5713, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[89] = CreateObject(1697, 2442.1187, -1617.5422, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[90] = CreateObject(1697, 2482.1921, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[91] = CreateObject(1697, 2477.7395, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[92] = CreateObject(1697, 2473.2869, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[93] = CreateObject(1697, 2468.8343, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[94] = CreateObject(1697, 2464.3817, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[95] = CreateObject(1697, 2459.9291, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[96] = CreateObject(1697, 2455.4765, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[97] = CreateObject(1697, 2451.0239, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[98] = CreateObject(1697, 2446.5713, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
fallobj[99] = CreateObject(1697, 2442.1187, -1612.1752, 160.0000, 31.8000, 0.0000, 0.0000);
SetTimer(\"Delay\", 1500, false);
if(!gmx){
for(new i; i < GetMaxPlayers(); i++){
   if(IsPlayerConnected(i)){
      if(IsPlayerInAnyVehicle(i)){
         new id = GetPlayerVehicleID(i);
         DestroyVehicle(id);
      }
            TogglePlayerSpectating(i, true);
      living = true;
           TogglePlayerSpectating(i, false);
   }
     }
     } else gmx = false;
     return true;
}
forward Delay();
public Delay(){
    newround = false;
    return true;
}
stock IsValidSkin(skinid){
    switch(skinid){
        case 3, 4, 5, 6, 8, 42, 65, 74, 86, 119, 149, 208, 273, 289: return false;
    }
    return true;
}
« Utoljára szerkesztve: 2012. Szeptember 29. - 16:28:00 írta divkn »

Nem elérhető ZyZu.

  • Globális moderátor
  • 8939
  • my turbo diesel forum
  • Discord: ZyZu.
    • Profil megtekintése
fallout segítség!
« Válasz #4 Dátum: 2012. Szeptember 29. - 17:53:50 »
0 Show voters
Köszönöm ez elég is lesz mert tovább tudom csinálni :D  ;)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal