Jump to content

susu

Membru
  • Posts

    32
  • Joined

  • Last visited

    Never

Posts posted by susu

  1. La:

    [pawn]public OnPlayerStateChange(playerid, newstate, oldstate)

    {

                  if(newcar == 1)

    {

    if(PlayerInfo[playerid][pPhousekey] == 0) { }

    else

        {

    SendClientMessage(playerid, COLOR_GRAD1,"You don't have permission to drive this car.Rent a room owner first.");

    RemovePlayerFromVehicle(playerid);

    }

    }[/pawn]

    Faci asa peentru fiecare casa

  2. Uite :

    La

    [pawn]public SetPlayerToTeamColor(playerid)

    {

          if (PlayerInfo[playerid][pMember] == 8 || PlayerInfo[playerid][pLeader] == 8)  //PS in cazul meu id de la factiunea hitman este 8 , nu stiu cum e la tine

          SetPlayerColor(playerid,0x72727200);

    }[/pawn]

  3. [pawn]          if(strcmp(cmd, "/disablenewb", true) == 0)

            {

                if(IsPlayerConnected(playerid))

      {

    if (PlayerInfo[playerid][pAdmin] >= 1337 && (!nonewbie))

    {

    nonewbie = 1;

    BroadCast(COLOR_GRAD2, "  Newbie chat channel disabled by an {FFFFFF}Admin!");

    SendClientMessage(playerid, COLOR_GRAD2, "  Newbie chat channel deactivated !");

    }

    else if (PlayerInfo[playerid][pAdmin] >= 1337 && (nonewbie))

    {

    nonewbie = 0;

    BroadCast(COLOR_GRAD2, "  Newbie chat channel enabled by an {FFFFFF}Admin!");

    SendClientMessage(playerid, COLOR_GRAD2, "  Newbie chat channel activated !");

    }

    else

    {

    SendClientMessage(playerid, COLOR_GRAD1, "Nu esti autorizat sa folosesti aceasta comanda!");

    }

    }

    return 1;

            }[/pawn]

  4. Uite unul bun :

    [pawn]  if (realchat)

    {

        if(gPlayerLogged[playerid] == 0)

        {

            return 0;

          }

          if(PlayerInfo[playerid][pAdmin] >= 0)

            {

        GetPlayerName(playerid, sendername, sizeof(sendername));

        format(string, sizeof(string), "%s spune: %s", sendername, text);

        ProxDetector(20.0, playerid, string,COLOR_FADE1,COLOR_FADE2,COLOR_FADE3,COLOR_FADE4,COLOR_FADE5);

    }

    // ApplyAnimation(playerid,"PED","IDLE_CHAT",4.1,0,1,1,1,1);

    return 0;

    }[/pawn]

    //Daca doresti sa pastrezi chestia cu maskon .. integreazo in asta si app vezi ca ai uitat sa inchizi  "}" aici:

    [pawn]if(realchat)

    {

        if(gPlayerLogged[playerid] == 0)

        {

            return 0;

          }[/pawn]

  5. Uitati logul la server :

    SA-MP Dedicated Server
    ----------------------
    v0.3e, (C)2005-2012 SA-MP Team
    
    [22:29:20] filterscripts = ""  (string)
    [22:29:20] 
    [22:29:20] Server Plugins
    [22:29:20] --------------
    [22:29:20]  Loading plugin: streamer.dll
    [22:29:20] 
    
    *** Streamer Plugin v2.5.2 by Incognito loaded ***
    
    [22:29:20]   Loaded.
    [22:29:20]  Loading plugin: mysql.dll
    [22:29:20]  SA:MP MySQL Plugin v2.1.1 Loaded.
    [22:29:20]   Loaded.
    [22:29:20]  Loading plugin: nativechecker.dll
    [22:29:20] [MySQL] Thread running. Threadsafe: Yes.
    [22:29:20]   Loaded.
    [22:29:20]  Loaded 3 plugins.
    
    [22:29:20] 
    [22:29:20] Ban list
    [22:29:20] --------
    [22:29:20]  Loaded: samp.ban
    [22:29:20] 
    [22:29:20] 
    [22:29:20] Filterscripts
    [22:29:20] ---------------
    [22:29:20]   Loaded 0 filterscripts.
    
    [22:29:20]    Error: Function not registered: 'mysql_reconnect'
    [22:29:20]    Error: Function not registered: 'mysql_fetch_row_format'
    [22:29:20]    Error: Function not registered: 'mysql_debug'
    [22:29:20]    Error: Function not registered: 'mysql_retrieve_row'
    [22:29:20]    Error: Function not registered: 'mysql_fetch_field_row'
    [22:29:20] Script[gamemodes/gtasarp.amx]: Run time error 19: "File or function is not found"
    [22:29:20] Number of vehicle models: 0
    

  6. 1. N-ai nevoie de 2000 max litere la un string ^_^.

    2. Te ajuti cu response (variabila) la functia OnDialogResponse.

    Pai dc nu il ajuti :| daca stii atat de multe? Eu l-as ajuta dar din pacate nu stiu ;;). Daca stie cineva ajutatil.

  7. Am si eu o problema cand intru in truck imi scrie  prods: 0/0

    si daca dau /buyprods tot la fel imi arata 0/0! va rog  ajutatima si pe mine

    [pawn]if(IsATruck(newcar))

    {

    format(string, sizeof(string), "Products: %d/%d", PlayerHaul[newcar][pLoad],PlayerHaul[newcar][pCapasity]);

    SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string);

    SendClientMessage(playerid, COLOR_WHITE, "INFO: You can deliver Products to Businesses.");

    SendClientMessage(playerid, COLOR_WHITE, "INFO: Commands are /load /buyprods /sellprods");

    }

    if(strcmp(cmd, "/buyprods", true) == 0)

    {

        if(IsPlayerConnected(playerid))

    {

    new tmpcar = GetPlayerVehicleID(playerid);

    new compcost = 50;

    if(PlayerToPoint(60.0, playerid, -78.9067,-1130.7458,0.6489))

    {

    if(IsATruck(tmpcar))

    {

    if(PlayerHaul[tmpcar][pLoad] < PlayerHaul[tmpcar][pCapasity])

    {

        new amount;

        tmp = strtok(cmdtext, idx);

    if(!strlen(tmp))

    {

    SendClientMessage(playerid, COLOR_GRAD1, "USAGE: /buyprods [amount]");

    return 1;

    }

    amount = strval(tmp);

    if(amount < 1 || amount > 500) { SendClientMessage(playerid, COLOR_GREY, "  Can't buy less then 1 Product or more then 500 !"); return 1; }

    new check= PlayerHaul[tmpcar][pLoad] + amount;

    if(check > PlayerHaul[tmpcar][pCapasity])

    {

        format(string, sizeof(string), "  You went over the Truck Products Carry Limit of %d, you currently carry %d.",PlayerHaul[tmpcar][pCapasity],PlayerHaul[tmpcar][pLoad]);

        SendClientMessage(playerid, COLOR_GREY, string);

        return 1;

    }

    new cost = amount*compcost;

    if(GetPlayerMoney(playerid) >= cost)

    {

    PlayerHaul[tmpcar][pLoad] += amount;

    format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

    SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string);

    format(string, sizeof(string), "You bought %d Products for $%d.", amount,cost);

    SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string);

    GivePlayerMoney(playerid,-cost);

    PlayerPlaySound(playerid, 1052, 0.0, 0.0, 0.0);

    return 1;

    }

    else

    {

    format(string, sizeof(string), "You cant afford %d Products at $%d !", amount,cost);

    SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string);

    return 1;

    }

    }

    else

    {

    format(string, sizeof(string), "Products: %d/%d.", PlayerHaul[tmpcar][pLoad],PlayerHaul[tmpcar][pCapasity]);

    SendClientMessage(playerid, TEAM_GroveStreet_COLOR, string);

    return 1;

    }

    }

    else

    {

    SendClientMessage(playerid, TEAM_GroveStreet_COLOR, "This Vehicle does not deliver Products.");

    return 1;

    }

    }

    }

    return 1;

    }[/pawn]

    Puteti da TC

    am rezolvat

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.