Szerző Téma: Öléskor a "score" 1-el nöljön...  (Megtekintve 958 alkalommal)

Nem elérhető BoSS

  • 816
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Dátum: 2012. Május 15. - 19:09:06 »
0 Show voters
Sziasztok,azt szeretném meg kérdezni,hogy ha valaki meg öl egy playert annak 1-el nöljön a pontszáma ..és ha meg hal akkor pedig 1 pontal csökkenje vissza...
Segítséget elõre is köszönöm.

Öléskor a "score" 1-el nöljön...
« Válasz #1 Dátum: 2012. Május 15. - 19:14:05 »
+1 Show voters
Szia. Amit most leírok az olyan, hogyha egy személy megöl egy másik személyt a gyilkos +1 pontot kap! Remélem jó.
 

public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid, 1);
}

 
-coldridge

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Válasz #2 Dátum: 2012. Május 15. - 19:15:40 »
+1 Show voters
public OnPlayerDeath( playerid, killerid, reason )
{
     if( killerid != INVALID_PLAYER_ID ) //Ha a gyilkos nem érvénytelen ID
     {
          SetPlayerScore( killerid, GetPlayerScore( killerid ) +1 );
     }
     SetPlayerScore( playerid, GetPlayerScore( playerid ) -1 );
     return 1;
}
« Utoljára szerkesztve: 2012. Május 15. - 19:20:03 írta Gabor.. »

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Válasz #3 Dátum: 2012. Május 15. - 19:16:51 »
0 Show voters
Idézetet írta: coldridge date=1337102045\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21506\" data-ipsquote-contentclass=\"forums_Topic
Szia. Amit most leírok az olyan, hogyha egy személy megöl egy másik személyt a gyilkos +1 pontot kap! Remélem jó.
 

public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid, 1);
}

 
-coldridge
 
Itt átállítja 1-re a pontját a gyilkosnak :)

Nem elérhető BoSS

  • 816
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Válasz #4 Dátum: 2012. Május 15. - 19:17:19 »
0 Show voters
Idézetet írta: coldridge date=1337102045\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21506\" data-ipsquote-contentclass=\"forums_Topic
Szia. Amit most leírok az olyan, hogyha egy személy megöl egy másik személyt a gyilkos +1 pontot kap! Remélem jó.
 

public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid, 1);
}

 
-coldridge
 
Rendben,köszönöm azt nem tudod meg oldani akit meg meg hal annak csökkenjen eggyel? :)

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Válasz #5 Dátum: 2012. Május 15. - 19:18:58 »
+1 Show voters
Idézetet írta: Gabor.. date=1337102140\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21506\" data-ipsquote-contentclass=\"forums_Topic

public OnPlayerDeath( playerid, killerid, reason )
{
     if( killerid != INVALID_PLAYER_ID ) //Ha az gyilkos nem érvénytelen ID
     {
     SetPlayerScore( killerid, GetPlayerScore( killerid ) +1 );
     }
     SetPlayerScore( playerid, GetPlayerScore( playerid ) -1 );
     return 1;
}

 

Itt van a Gabor..-éban

Nem elérhető BoSS

  • 816
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Válasz #6 Dátum: 2012. Május 15. - 19:19:59 »
0 Show voters
Idézetet írta: Gabor.. date=1337102140\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21506\" data-ipsquote-contentclass=\"forums_Topic

public OnPlayerDeath( playerid, killerid, reason )
{
     if( killerid != INVALID_PLAYER_ID ) //Ha az gyilkos nem érvénytelen ID
     {
          SetPlayerScore( killerid, GetPlayerScore( killerid ) +1 );
     }
     SetPlayerScore( playerid, GetPlayerScore( playerid ) -1 );
     return 1;
}

 

Köszi...Ez jó ment a plusz meg annak is aki még segített :) zártam.

Nem elérhető BoSS

  • 816
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Válasz #7 Dátum: 2012. Május 15. - 19:09:06 »
0 Show voters
Sziasztok,azt szeretném meg kérdezni,hogy ha valaki meg öl egy playert annak 1-el nöljön a pontszáma ..és ha meg hal akkor pedig 1 pontal csökkenje vissza...
Segítséget elõre is köszönöm.

Öléskor a "score" 1-el nöljön...
« Válasz #8 Dátum: 2012. Május 15. - 19:14:05 »
0 Show voters
Szia. Amit most leírok az olyan, hogyha egy személy megöl egy másik személyt a gyilkos +1 pontot kap! Remélem jó.
 

public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid, 1);
}

 
-coldridge

Nem elérhető Gabor..

  • 1883
  • Gabor..
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Válasz #9 Dátum: 2012. Május 15. - 19:15:40 »
0 Show voters
public OnPlayerDeath( playerid, killerid, reason )
{
     if( killerid != INVALID_PLAYER_ID ) //Ha a gyilkos nem érvénytelen ID
     {
          SetPlayerScore( killerid, GetPlayerScore( killerid ) +1 );
     }
     SetPlayerScore( playerid, GetPlayerScore( playerid ) -1 );
     return 1;
}
« Utoljára szerkesztve: 2012. Május 15. - 19:20:03 írta Gabor.. »

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Válasz #10 Dátum: 2012. Május 15. - 19:16:51 »
0 Show voters
Idézetet írta: coldridge date=1337102045\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21506\" data-ipsquote-contentclass=\"forums_Topic
Szia. Amit most leírok az olyan, hogyha egy személy megöl egy másik személyt a gyilkos +1 pontot kap! Remélem jó.
 

public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid, 1);
}

 
-coldridge
 
Itt átállítja 1-re a pontját a gyilkosnak :)

Nem elérhető BoSS

  • 816
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Válasz #11 Dátum: 2012. Május 15. - 19:17:19 »
0 Show voters
Idézetet írta: coldridge date=1337102045\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21506\" data-ipsquote-contentclass=\"forums_Topic
Szia. Amit most leírok az olyan, hogyha egy személy megöl egy másik személyt a gyilkos +1 pontot kap! Remélem jó.
 

public OnPlayerDeath(playerid, killerid, reason)
{
SetPlayerScore(killerid, 1);
}

 
-coldridge
 
Rendben,köszönöm azt nem tudod meg oldani akit meg meg hal annak csökkenjen eggyel? :)

Nem elérhető zeteni

  • 1970
  • Ex-Scripter
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Válasz #12 Dátum: 2012. Május 15. - 19:18:58 »
0 Show voters
Idézetet írta: Gabor.. date=1337102140\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21506\" data-ipsquote-contentclass=\"forums_Topic

public OnPlayerDeath( playerid, killerid, reason )
{
     if( killerid != INVALID_PLAYER_ID ) //Ha az gyilkos nem érvénytelen ID
     {
     SetPlayerScore( killerid, GetPlayerScore( killerid ) +1 );
     }
     SetPlayerScore( playerid, GetPlayerScore( playerid ) -1 );
     return 1;
}

 

Itt van a Gabor..-éban

Nem elérhető BoSS

  • 816
    • Profil megtekintése
Öléskor a "score" 1-el nöljön...
« Válasz #13 Dátum: 2012. Május 15. - 19:19:59 »
0 Show voters
Idézetet írta: Gabor.. date=1337102140\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"21506\" data-ipsquote-contentclass=\"forums_Topic

public OnPlayerDeath( playerid, killerid, reason )
{
     if( killerid != INVALID_PLAYER_ID ) //Ha az gyilkos nem érvénytelen ID
     {
          SetPlayerScore( killerid, GetPlayerScore( killerid ) +1 );
     }
     SetPlayerScore( playerid, GetPlayerScore( playerid ) -1 );
     return 1;
}

 

Köszi...Ez jó ment a plusz meg annak is aki még segített :) zártam.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal