Szerző Téma: Deathmatch zónába spawnol  (Megtekintve 514 alkalommal)

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Deathmatch zónába spawnol
« Dátum: 2013. Augusztus 30. - 13:27:19 »
0 Show voters
Üdv,  ma elkezdtem folytatni az egyik játékmódomat csak a dm zónáknál a spawnolásban az a gáz h , amikor lespawnolok már oda rak le
Kód:
 
public OnPlayerSpawn(playerid) {
switch(GetPVarInt(playerid,\"DM\"))
{
case 0:
{
   new   rand = random(sizeof( M4 ) );
   SetPlayerPos(playerid,M4[rand][0],M4[rand][1],M4[rand][2]);
   ResetPlayerWeapons(playerid);
   GivePlayerWeapon(playerid,31,5000);
   SetPlayerHealth(playerid,10);
    }
    case 1:
    {
   new rand = random( sizeof ( Sawn ) );
   SetPlayerPos(playerid,Sawn[rand][0],Sawn[rand][1],Sawn[rand][2]);
   SetPlayerHealth(playerid,100);
   ResetPlayerWeapons(playerid);
   GivePlayerWeapon(playerid,26,5000);
}
case 2:
{
                new
          rand = random( sizeof ( MGM ) );
      SetPlayerPos( playerid, MGM[ rand ] [ 0 ], MGM[ rand ] [ 1 ], MGM[ rand ] [ 2 ] );
      ResetPlayerWeapons( playerid );
      GivePlayerWeapon( playerid, 38, 9999 );
}
case 3:
{
              new
          rand = random( sizeof ( MGM ) );
      SetPlayerPos( playerid, DDM[ rand ] [ 0 ], DDM[ rand ] [ 1 ], DDM[ rand ] [ 2 ] );
      ResetPlayerWeapons( playerid );
      SetPlayerInterior(playerid,16);
      GivePlayerWeapon( playerid, 10, 9999 );
}
default:
{
   Tele(playerid,2239.0166,2233.2952,10.8032,273.8759,\"\");
}
}
return 1;
}
« Utoljára szerkesztve: 2013. Augusztus 30. - 13:30:35 írta ZzzzzZ »

Deathmatch zónába spawnol
« Válasz #1 Dátum: 2013. Augusztus 30. - 16:31:08 »
0 Show voters
Idézetet írta: ZzzzzZ date=1377862039\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"42179\" data-ipsquote-contentclass=\"forums_Topic
Üdv,  ma elkezdtem folytatni az egyik játékmódomat csak a dm zónáknál a spawnolásban az a gáz h , amikor lespawnolok már oda rak le
 
???
Ezt még1x légyszi.

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Deathmatch zónába spawnol
« Válasz #2 Dátum: 2013. Augusztus 30. - 16:56:23 »
0 Show voters
Idézetet írta: Ezredes date=1377873068\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"42179\" data-ipsquote-contentclass=\"forums_Topic


Üdv,  ma elkezdtem folytatni az egyik játékmódomat csak a dm zónáknál a spawnolásban az a gáz h , amikor lespawnolok már oda rak le
 
???
Ezt még1x légyszi.
 
[/quote]
sry csak iparkodtam xd
Az lenne a problémám hogy amikor megcsináltam a Spawnolást akkor , Nem az alap helyszínre hanem , a DeathMatch Zónáknak a helyére rak le , nem értem h miért.

Nem elérhető BoOy

  • 3209
  • 2013-as év szkriptere
    • Profil megtekintése
Deathmatch zónába spawnol
« Válasz #3 Dátum: 2013. Augusztus 30. - 17:59:24 »
+1 Show voters
Ha azt akarod elérni hogy ne a dm zónába rakjon le:
SetPVarInt(playerid,\"DM\",-1);

Nem elérhető instant

  • 2778
  • ZzzzzZ
    • Profil megtekintése
Deathmatch zónába spawnol
« Válasz #4 Dátum: 2013. Augusztus 30. - 18:42:45 »
0 Show voters
Müködik köszi boy fiúcska :D

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal