Jump to content

Staff

Membru
  • Posts

    250
  • Joined

  • Last visited

    Never

Posts posted by Staff

  1. Doamne daca si ceva atat de simplu mai are nevoie de explicati eu imi tai pulta..

    DACA:

    Folosesti vr'e unul dintre aceste pluginuri: Streamer

    SSCANF

    MYSQL

    Le faci un update adica cauti pe internet versiuni mai noi.

    Faci la pluginuri cat si la fisierele [include-urile] din PAwno-Includes.

    Daca ai facut tot pana aici si nu ti-a mers faci ce a zis Gireada si anume iei acel plugin si il bagi.

  2. Cauta la OnPlayerText si trebuie doar sa schimbi culoarea..

    EX:

    [pawn]    new plmz[256];

    format(plmz, sizeof(plmz),"(ID:%d){FFFFFF} %s",playerid, text);

    SendPlayerMessageToAll(playerid, plmz);

    SetPlayerChatBubble(playerid, text, COLOR_LIGHTGREEN, 100.0, 10000);[/pawn]

  3. Atunci ->[pawn]if(strcmp(cmdtext, "/exit", true) == 0)

        {

    if (PlayerToPoint(5,playerid,227.1062,125.7774,1003.1243))

    {

    SetPlayerPos(playerid,258.4353,90.5100,1002.4453);

    SetPlayerInterior(playerid,6);

    format(string, sizeof(string), "~w~Inside the ~w~LSPD");

    GameTextForPlayer(playerid, string, 1000, 1);

    return 1;

    }

    else if(PlayerToPoint(5,playerid,1110.3286,1573.0531,7.8184))

    {

    SetPlayerPos(playerid, 1283.4934,-1160.1379,23.9610);

    }

    else if(PlayerToPoint(5,playerid,288.745971, 169.350997, 1007.171875))

    {

    SetPlayerPos(playerid, 1653.8624, -1655.3732, 22.5156);

    SetPlayerInterior(playerid, 0);

    SetPlayerVirtualWorld(playerid, 0);

    SetCameraBehindPlayer(playerid);

    PlayerInfo[playerid][pVirWorld] = 0;

    PlayerInfo[playerid][pInt] = 0;

    }

    else if(PlayerToPoint(5,playerid,833.269775,10.588416,1004.179687))

    {//Taxi

    SetPlayerPos(playerid, 2134.4209,1420.2867,10.8125);

    SetPlayerInterior(playerid, 0);

    SetPlayerVirtualWorld(playerid, 0);

    SetCameraBehindPlayer(playerid);

    PlayerInfo[playerid][pVirWorld] = 0;

    PlayerInfo[playerid][pInt] = 0;

    }

    else if(PlayerToPoint(5,playerid,2769.5105,-1944.2544,12.9322))

    {//LVV

    SetPlayerPos(playerid, 2028.9482,1911.8250,12.2985);

    SetPlayerInterior(playerid, 10);

    SetPlayerVirtualWorld(playerid, 400);

    SetCameraBehindPlayer(playerid);

    PlayerInfo[playerid][pVirWorld] = 400;

    PlayerInfo[playerid][pInt] = 10;

    }

    }[/pawn]

  4. Cuaie e urat..tu ai postat comanda /exit pentru mai multe hq-uri..eu de unde stiu la care vrei tu sa modifici?

    Totusi incearca asa ->[pawn]if(strcmp(cmdtext, "/exit", true) == 0)

        {

    if (PlayerToPoint(5,playerid,227.1062,125.7774,1003.1243))

    {

    SetPlayerPos(playerid,258.4353,90.5100,1002.4453);

    SetPlayerInterior(playerid,6);

    format(string, sizeof(string), "~w~Inside the ~w~LSPD");

    GameTextForPlayer(playerid, string, 1000, 1);

    return 1;

    }

    else if(PlayerToPoint(5,playerid,1110.3286,1573.0531,7.8184))

    {

    SetPlayerPos(playerid, 2028.9482,1911.8250,12.2985);

    }

    else if(PlayerToPoint(5,playerid,288.745971, 169.350997, 1007.171875))

    {

    SetPlayerPos(playerid, 1653.8624, -1655.3732, 22.5156);

    SetPlayerInterior(playerid, 0);

    SetPlayerVirtualWorld(playerid, 0);

    SetCameraBehindPlayer(playerid);

    PlayerInfo[playerid][pVirWorld] = 0;

    PlayerInfo[playerid][pInt] = 0;

    }

    else if(PlayerToPoint(5,playerid,833.269775,10.588416,1004.179687))

    {//Taxi

    SetPlayerPos(playerid, 2134.4209,1420.2867,10.8125);

    SetPlayerInterior(playerid, 0);

    SetPlayerVirtualWorld(playerid, 0);

    SetCameraBehindPlayer(playerid);

    PlayerInfo[playerid][pVirWorld] = 0;

    PlayerInfo[playerid][pInt] = 0;

    }

    else if(PlayerToPoint(5,playerid,2769.5105,-1944.2544,12.9322))

    {//LVV

    SetPlayerPos(playerid, -975.975708,1060.983032,1345.671875);

    SetPlayerInterior(playerid, 10);

    SetPlayerVirtualWorld(playerid, 400);

    SetCameraBehindPlayer(playerid);

    PlayerInfo[playerid][pVirWorld] = 400;

    PlayerInfo[playerid][pInt] = 10;

    }

    }[/pawn]

  5. [pawn]// This variable is used to store the id of the textdraw

    // so that we can use it throught the script

    new Text:welcomeText;

    public OnGameModeInit()

    {

        // This line is used to create the textdraw.

        // Note: This creates a textdraw without any formatting.

        welcomeText = TextDrawCreate(240.0,580.0,"Welcome to my SA-MP server");

        return 1;

    }

    public OnPlayerConnect(playerid)

    {

        //This is used to show the player the textdraw when they connect.

        TextDrawShowForPlayer(playerid,welcomeText);

    }[/pawn]

    Adica declari variabilele..la ongamemodeinit pui textdraw in sine..si la onplayerconnect TextdrawShowForPlayer(playerid,plm cum ai tu declarat td-u

  6. :)) am zis update nu upload =))

    Ia pawno 0.3x si baga include-urile si compileaza.

    Intri pe -> http://www.sa-mp.ro/index.php?page=download

    si downloadezi SA-MP 0.3X Windows Server SA-MP Official ,acolo o sa gasesti pawno..iei include-urile de la pawno al tau si le bagi acolo..daca te intreaba daca vrei sa-i dai "replace"(inlocuire) la include-uri sa nu dai.

  7. Ia incearca asa :-?

    [pawn]public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)

    {

    if( GetPlayerState( playerid ) == PLAYER_STATE_DRIVER )

    {

        if( newkeys & KEY_YES** )

        {

    new VehicleID, Float:X, Float:Y, Float:Z, Float:Angle;

    GetPlayerPos(playerid, X, Y, Z); VehicleID = GetPlayerVehicleID(playerid);

    GetVehicleZAngle(VehicleID, Angle);SetVehiclePos(VehicleID, X, Y, Z);

                            GameTextForPlayer(playerid,"~w~ ~r~Vehicle Flipped",5000,5);

    SetVehicleZAngle(VehicleID, Angle); SetVehicleHealth(VehicleID,1000.0);

    }

    }

    return 1;

    }[/pawn]

  8. Pai daca vrei sa apara cand intri pe server le bagi la onplayerspawn..si apar dupa ce te-ai logat..sau..

    [pawn]dcmd_clearchat(playerid,params[])

    {

            for(new i = 0; i < 250; i++) SendClientMessageToAll(0x00000000," ");

            return 1;

    }[/pawn]

    Sau..bagi linia asta unde ai si mesajele alea..[pawn]for(new i = 0; i < 250; i++) SendClientMessageToAll(0x00000000," ");[/pawn]

×
×
  • 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.