Jump to content

Search the Community

Showing results for tags 'fabricator tutorial'.

  • Search By Tags

    Oddělujte čárkami
  • Search By Author

Content Type


Fórum

  • Obecné
    • Všeobecné
    • Všechno možné
  • Programování
    • Poradna
    • Návody
    • Tvorba
    • Hledám programátora
  • Herní oblast
    • Poradna
    • Jak na to?
    • Herní kontext
    • Herní zážitky
    • Komunita
  • Grafika
    • Poradna
    • Návody
    • Tvorba
  • Ostatní
    • Hardware a software
    • Hledám/nabízím
    • Archiv
    • 3D Tisk

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Web


Facebook


Jabber


Skype


Steam


Twitter


Github


Pastebin

Found 1 result

  1. Mivčo

    návod Ako vytvorit TDM Mod

    Zdravim Chcem ukazat navod novačikom ako si možu založit TDM mod Je to velmi lahke Zakladom Modu musí byt toto: #include <a_samp> Musí tam byt Team a farby #define Policia 1 #define Terrorista 2 #define PoliceCOLOR 0x00FF00AA #define TerrorCOLOR 0xFF00FFAA #define Farba_Cervena 0xFF0011FF Nemožte zabudnut na premenu na Body a Peniaze enum pInfo //pInfo Premena { pBody, pPeniaze, } Newy: new PlayerData[MAX_PLAYERS][pInfo]; new Team[MAX_PLAYERS]; new prachy[MAX_PLAYERS]; V publicu OnGameModeInit musite mat nazov Modu a obleky SetGameModeText("TDM"); // Nazov Modu AddPlayerClass(265,2431.3733,-1679.4271,13.7673,0,24,100,0,0,0,0); // Oblek Policajta AddPlayerClass(28,2167.8926,-1670.0753,15.0805,0,24,100,0,0,0,0); // Oblek Terroristu Do OnPlayerRequestClass(playerid, classid) dáte toto aby ste si mohli vyberat teamy switch(classid) { case 0: // Policajt { Team[playerid] = Policia; // Vybrat si Team za Policajta { SetPlayerColor(playerid,PoliceCOLOR); //Farba Policajta } } case 1: // Terrorista { Team[playerid] = Terrorista; // Vybrat si Team za Terroristu { SetPlayerColor(playerid, TerrorCOLOR); //Farba Terroristu } } } } Do public OnPlayerDeath(playerid, killerid, reason) dáte toto aby ste dostavaly Body a Penaze a tak if(Team[killerid] == Team[playerid]) { SendClientMessage(killerid,Farba_Cervena, "Zabil si spoluhrača odratame ti $1000 a 4 Body."); //Sprava o Zabití PlayerData[killerid][pPeniaze] -= 1000; SetPlayerMoney(killerid, PlayerData[killerid][pPeniaze]); SetPlayerScore(killerid, PlayerData[killerid][pBody] - 4); } else if(Team[killerid] != Team[playerid]) { PlayerData[playerid][pPeniaze] -=100; PlayerData[killerid][pPeniaze] +=100; SetPlayerMoney(playerid, PlayerData[playerid][pPeniaze]); SetPlayerMoney(killerid, PlayerData[killerid][pPeniaze]); SetPlayerScore(playerid, PlayerData[playerid][pBody]-1); SetPlayerScore(killerid, PlayerData[killerid][pBody]+1); } SendDeathMessage(killerid, playerid, reason); return 1; } Potom pridate do GM alebo do FS Stock lebo inak vam bude ukazovat errory: Stock Dakujem za Moj navod snad niekomu pomože JE to moj Prvý Tutorial aj budu problemy píšte Dakujem
×
×
  • Create New...