Szerző Téma: Antifall  (Megtekintve 1441 alkalommal)

Antifall
« Dátum: 2013. Március 28. - 17:38:50 »
+2 Show voters
Üdv.
Hiv. fórummon találtam ezt az antifall \"rendszert\" és lefordíottam nektek! :D
Aki nem tudja az antifall azt jelenti,hogy ha a játékos nekimegy valaminek,nem esik le a jármûrõl!
Eredeti Téma:http://forum.sa-mp.com/showthread.php?t=425959
Eredeti Készítõ Neve:greentarch
Fordító Neve:Aldo(én)
Fordítási Idõ:10 perc kb. (tesztelésel)
Parancsa:/Antifall
Kód:
 
/*   antifall rendszer - 0.3x
*/
#define FILTERSCRIPT
#include <a_samp>
new
    bool: g_antifall[MAX_PLAYERS],
    bool: g_bump[MAX_PLAYERS],
    g_veh[MAX_PLAYERS]
;
public OnFilterScriptInit() {
    print(\"\\n\\t- Antifall Rendszer (0.3x) by greentarch fordítás by Aldo -\\n\\t*BEKAPCSOLVA*\\n\");
    return true;
}
public OnFilterScriptExit() {
    print(\"\\n\\t- Antifall rendszer (0.3x) by greentarch fordítás by Aldo -\\n\\t*KIKAPCSOLVA*\\n\");
    return true;
}
public OnPlayerConnect(playerid) {
    g_antifall[playerid] = true;
    g_bump[playerid] = false;
    g_veh[playerid] = -1;
    SendClientMessage(playerid, -1, \"[iNFO]:Ez a szerver greentarch antifall rendszerét használja.\");
    SendClientMessage(playerid, -1, \"[iNFO]:Használd az /antifall parancsot a bekapcsoláshoz!\");
    return true;
}
public OnPlayerStateChange(playerid, newstate, oldstate) {
    if (newstate == PLAYER_STATE_DRIVER) {
        g_veh[playerid] = GetPlayerVehicleID(playerid);
        g_bump[playerid] = true;
    }
    else if(newstate == PLAYER_STATE_ONFOOT && oldstate == PLAYER_STATE_DRIVER) {
        if (g_bump[playerid] && g_antifall[playerid]) {
            PutPlayerInVehicle(playerid, g_veh[playerid], 0);
        }
    }
    return true;
}
public OnPlayerExitVehicle(playerid, vehicleid) {
    g_bump[playerid] = false;
    return true;
}
public OnPlayerCommandText(playerid, cmdtext[]) {
    if (!strcmp(cmdtext, \"/antifall\", true)) {
        g_antifall[playerid] = !g_antifall[playerid];
        SendClientMessage(playerid, 0x33FF33AA,
        (g_antifall[playerid]) ? (\"[iNFO]:Antifall Bekapcsolva!\") : (\"[iNFO]:Antifall Kikapcsolva!\"));
        return true;
    }
    return false;
}

 
Aldo
« Utoljára szerkesztve: 2013. Március 28. - 20:22:26 írta Scripter,mapper [Aldo] »

Nem elérhető BackUP

  • 908
    • Profil megtekintése
Antifall
« Válasz #1 Dátum: 2013. Március 28. - 17:45:14 »
0 Show voters
Szép, de leírhatnád a kezdõk számára, mit is csinál ez.

Antifall
« Válasz #2 Dátum: 2013. Március 28. - 17:58:26 »
0 Show voters
Idézetet írta: BackUP date=1364489114\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"35370\" data-ipsquote-contentclass=\"forums_Topic
Szép, de leírhatnád a kezdõk számára, mit is csinál ez.
 
Kössz,hogy szóltál.

Kiegészve.

Nem elérhető Benx

Antifall
« Válasz #3 Dátum: 2013. Március 28. - 18:47:35 »
+1 Show voters
A Fordítás egyszerûen mesteri lett :)

Ritkán mondok ilyet de ez most nagyon jó lett.


100%-ban adom a
pluszt!

Nem elérhető BackUP

  • 908
    • Profil megtekintése
Antifall
« Válasz #4 Dátum: 2013. Március 28. - 18:52:19 »
0 Show voters
Remek. Másra gondoltam, azt hittem mást csinál :D
Viszont van egy kis elírás!
FilterScriptInit-nél,


print(\"\\n\\t- Antifall Rendszer (0.3x) by greentarch fordítás by Aldo -\\n\\t*BBEKAPCSOLVA*\\n\");

 

[/quote]
Végén 2db B-t írtál. :)

Antifall
« Válasz #5 Dátum: 2013. Március 28. - 20:22:08 »
0 Show voters
Idézetet írta: Benx date=1364492855\" data-ipsquote-contentapp=\"forums\" data-ipsquote-contenttype=\"forums\" data-ipsquote-contentid=\"35370\" data-ipsquote-contentclass=\"forums_Topic
A Fordítás egyszerûen mesteri lett :)

Ritkán mondok ilyet de ez most nagyon jó lett.


100%-ban adom a
pluszt!
 
Köszönöm Szépen :D
 

Remek. Másra gondoltam, azt hittem mást csinál :D
Viszont van egy kis elírás!
FilterScriptInit-nél,


print(\"\\n\\t- Antifall Rendszer (0.3x) by greentarch fordítás by Aldo -\\n\\t*BBEKAPCSOLVA*\\n\");

 

[/quote]
Végén 2db B-t írtál. :)
 
[/quote]
Jaj kösz csak most látom :) .Javíva. :D

Nem elérhető ][Fo[R]cE][

  • 86
  • SAJT!
    • Profil megtekintése
Antifall
« Válasz #6 Dátum: 2013. Április 06. - 13:36:29 »
0 Show voters
szép, nekem mûködik, a fordítás is elég jó lett, igaz hogy rövid, de szántál rá idõt :)
köszi hogy áthoztad, megy a +!

Antifall
« Válasz #7 Dátum: 2013. Április 06. - 14:36:59 »
0 Show voters
Nem nagy munka de valakinek hasznos lehet :)

Antifall
« Válasz #8 Dátum: 2013. Április 06. - 18:38:42 »
0 Show voters
Köszönöm mindenkinek :)

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal