Would you like to react to this message? Create an account in a few clicks or log in to continue.

3 posters

    [TUT]povolanie

    avatar
    dajmon
    Nováčik


    Posts : 18
    Join date : 26.04.2011

    [TUT]povolanie Empty [TUT]povolanie

    Odoslať pre dajmon Ut apríl 26, 2011 10:41 am

    cawte zrobim vam povolanie....
    no takze hore
    kód:
    new povolanie[MAX_PLAYERS];
    new pick;
    do OnGameModeInit
    kód:
    pick = CreatePick(pickupid,1,x,y,z,virtual world);
    do OnPlayerPickupPickup
    kód:
    if(pickupid == pick){
    ShowPlayerDialog(playerid,iddialogu,DIALOG_STYLE_MSGBOX,"povolanie","chces sa zamestnat ako povolanie???","zamestnat","nic");
    }
    do OnDialogResponse
    kód:
    if(dialogid == 3)
    {
    if(response == 1)//ak vybere zamestnat
    {
    if(povolanie[playerid] == 1) return SendClientMessage(playerid,COLOR_CERVENA,"uz si zamestnani ako povolanie");
    povolanie[playerid] = 1; //nastavi mu povolanie
    SetPlayerSkin(playerid,skinid);//da mu skin
    GivePlayerWeapon(playerid,weapoid,ammo);//da mu zbran
    SetPlayerColor(playerid,COLOR_SVMODRA);//da mu farbu modra
    }
    }
    no zamestnanie mame este dodat ze ak zrobite 2 zamestnanie tak:
    kód:
    namiesto:
    povolanie[playerid] = 1;
    date:
    povolanie[playerid] = 2;
    a este ze do funkcie pre tieto povolanie no podmienku aby to ine povolanie nemohlo robit je:
    kód:
    if(povolanie[playerid] != 1) return SendClientMessage(playerid,COLOR_CERVENA,"niesi povolanie");
    //to je asi vsetko
    avatar
    rikko96
    Nováčik


    Posts : 2
    Join date : 08.05.2011

    [TUT]povolanie Empty Re: [TUT]povolanie

    Odoslať pre rikko96 Po máj 30, 2011 7:23 am

    Mne ako začiatočníkovy sa to zíde. Díky Smile Very Happy Wink
    avatar
    DanQo
    Nováčik


    Posts : 3
    Join date : 24.07.2011

    [TUT]povolanie Empty Re: [TUT]povolanie

    Odoslať pre DanQo Ne júl 24, 2011 9:12 am

    Máš skvelé navody Very Happy

    Sponsored content


    [TUT]povolanie Empty Re: [TUT]povolanie

    Odoslať pre Sponsored content


      Práve je So november 23, 2024 12:55 am