Old4Game

Old4Game - New gaming generations

1408942Dum Oct 01, 2017 6:29 am6293BuNiCu.wHVizitatorVizitator

    Cum faci sa apara playerii online

    Distribuiţi
    avatar
    Skrillex ;o
    Loyalty Club

    Member Title : WGR Member
    Mesaje : 84
    Join : 22/07/2012

    Cum faci sa apara playerii online

    Mesaj Scris de Skrillex ;o la data de Dum Aug 05, 2012 11:05 am

    Este un tutorial in care va arat cum faceti sa va arate playerii online.

    Prima data , punem ce avem mai jos in partea de sus al FilterScript


    Code: [Select]
    new Text:players;
    Acum cauta in gm/fs Public OnGameModeInit/OnFilterScriptInit si adauga asta:


    Code: [Select]
    // TextDraw for Players Online players = TextDrawCreate(54.000000, 326.000000, "_"); TextDrawBackgroundColor(players, 255); TextDrawFont(players, 2); TextDrawLetterSize(players, 0.500000, 1.000000); TextDrawColor(players, -65281); TextDrawSetOutline(players, 1); TextDrawSetProportional(players, 1); for(new i; i < MAX_PLAYERS; i ++) { if(IsPlayerConnected(i)) { TextDrawShowForPlayer(i, players); } }
    Ok textdrawl este creat , dar acuma trebuie sa facem sa il arate si la playeri , deci pune asta la OnPlayerConnect


    Code: [Select]
    new strings[15]; format(strings, 15, "%d/50",GetOnLinePlayers()); TextDrawSetString(players, strings); TextDrawShowForPlayer(playerid, players);
    In public OnGameModeExit/OnFilterScriptExit pune asta:


    Code: [Select]
    TextDrawHideForAll(players); TextDrawDestroy(players);
    Pentru a termina GM/FS pune asta:


    Code: [Select]
    stock GetOnLinePlayers(){ new OnLine; for(new i, g = GetMaxPlayers(); i < g; i++) if(IsPlayerConnected(i)) OnLine++; return OnLine;}

    fAke!
    Membru

    Member Title : WGR Member
    Mesaje : 36
    Join : 16/08/2012
    Localizare : Dumbrava Rosie !

    Re: Cum faci sa apara playerii online

    Mesaj Scris de fAke! la data de Joi Aug 16, 2012 9:52 pm

    foarte tare
    avatar
    [D0m!n0]F|4V!U$
    Membru

    Member Title : WGR Member
    Mesaje : 353
    Join : 16/02/2013

    Re: Cum faci sa apara playerii online

    Mesaj Scris de [D0m!n0]F|4V!U$ la data de Mar Feb 26, 2013 7:38 am

    ft tare
    avatar
    #greenpeace
    Membru

    Member Title : WGR Member
    Mesaje : 7
    Join : 05/11/2013

    Re: Cum faci sa apara playerii online

    Mesaj Scris de #greenpeace la data de Mar Noi 05, 2013 7:55 am

    multumim

    Continut sponsorizat

    Re: Cum faci sa apara playerii online

    Mesaj Scris de Continut sponsorizat


      Acum este: Vin Noi 24, 2017 1:19 am