Jump to content

andy47

Membru
  • Posts

    519
  • Joined

  • Last visited

  • Days Won

    7

Posts posted by andy47

  1. [pawn]#include <a_samp>

    public OnFilterScriptInit()

    {

    print("\n--------------------------------------");

    print(" FS by Andy47");

    print("--------------------------------------\n");

    return 1;

    }

    public OnFilterScriptExit()

    {

    return 1;

    }

    public OnPlayerCommandText(playerid, cmdtext[])

    {

    if (strcmp("/cmds", cmdtext, true, 10) == 0)

    {

    new cmds[123];//am facut new-ul am pus 1 acolo daca ai gm deja ceva definit schimbal....

    strcat(cmds,"Drifts \n",123);//am facut strcat

    strcat(cmds,"/drift[1-100] \n",123);//am facut strcat

    strcat(cmds,"/adrift /sdrift /vdrift \n",123);//am facut strcat

    ShowPlayerDialog(playerid, 123, DIALOG_STYLE_MSGBOX, "Commands Page 1:",cmds, "Next","Close");

    return 1;

    }

    return 0;

    }

    public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])

    {

    if(dialogid == 123) //apasa playeru primu buton adica Next

    {

    if(response)

    {

    ShowPlayerDialog(playerid, 124, DIALOG_STYLE_MSGBOX,"Commands Part2", "Others \n /lvair /ls /sf /lsair \n", "Next","Close");

    }

    else // a doilea buton nu face nimic...aici puteai face cu back

    {

    }

    return 1;

    }

    if(dialogid == 124) // asta e la cea din inainte cand dai Next

    {

    if(response)

    {

    ShowPlayerDialog(playerid, 124, DIALOG_STYLE_MSGBOX,"Commands Part3", "DM \n /ddz /ddz2 /m4am /ak47 \n", "Ok","Close");

    }

    else // a doilea buton nu face nimica aici puteai face cu back

    {

    }

    return 1;

    }

    return 1;

    }

    [/pawn]

    EDIT: vroiam sa tio fac si cu back dar..trb acolo schimbat ceva daca vrei sa-ti fac cautama:D

  2. pai...

    mode il schimbi in felul urmator:

    mergi in gamemodul tau te duci la  ongamemodeinit si adaugi

    [pawn]  SetGameModeText("aici poti sa pui orice text vrei:D");[/pawn]

    si la cealalta intrebare:

    mergi in gamemode la onplayerconnect si adaugi:

    [pawn]SendClientMessage(playerid, COLOR_WHITE,"text pui ce vrei de exemplu cum ai vrut tu SCRIPTING:by Dr.Dre ");[/pawn]

  3. pai...

    pui new asta:D

    [pawn]new Float:gRandomPlayerSpawns[6][0] = {

    {403.447265,2466.154296,16.506214},//aa astai pt aa tu pui pt care vrei tu coordonatele

    {-1325.8376,-269.6708,14.1484},//sfair

    {1288.1819,1276.7617,10.8203},//lvair

    {1940.7784,-2354.7644,13.5469},//lsair

    {-299.2184,1777.2996,42.6875},//drift

    {-2638.8489,1360.6714,7.1384} //jizzy

    };

    //pui forwardu

    forward SetPlayerRandomSpawn(playerid);

    //dupa mergi la onplayerspawn si pui((daca vrei poti pune si la onplayerconnect daca vrei cand se connecteaza playeru sa il spawneze acolo

    SetPlayerRandomSpawn(playerid);

    //dupa pui publicul

    public SetPlayerRandomSpawn(playerid)

    {

        if (iSpawnSet[playerid] == 0)

        {

    new rand = random(sizeof(gRandomPlayerSpawns));

    SetPlayerPos(playerid, gRandomPlayerSpawns[rand][0], gRandomPlayerSpawns[rand][1], gRandomPlayerSpawns[rand][2]); // Warp the player

    }

    return 1;

    }

    //sper ca ai inteles:D

    [/pawn]

  4. am facut un fs si am bagat:

    #include <a_samp>

    #include <Streamer>

    public OnFilterScriptInit()

    {

    CreateDynamicObject(1946,800.01000000,219.76000000,635.46000000,0.00000000,0.00000000,0.00000000,0); //

    CreateDynamicObject(1946,831.58000000,268.69000000,708.39000000,0.00000000,0.00000000,0.00000000,0); //

    sunt mai multe dar nu leam pus pe toate...

    return 1;

    }

    public OnFilterScriptExit()

    {

    return 1;

    }

    si cand intru in joc nu-mi apar obiectele de la ce sa fie???

    EDIT:mi-am dat seama lipsea pluginu scz de post...un admin sa-l stearga

  5. D:\mere.pwn(261) : error 035: argument type mismatch (argument 2)

    D:\mere.pwn(262) : error 035: argument type mismatch (argument 2)

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    2 Errors.

    oare dc?

  6. deci,am inceput intr-o zi sa scriptez si cand am scris:

    CMD:nrg( playerid, params[ ] )

    {

    if(IsPlayerInAnyVehicle(playerid)) return Info( playerid, "~r~~h~Already drive a car. ~b~~h~Out of the car and try again.");

    Info( playerid, "Personal ~b~~h~NRG-500~w~ succesfully created" );

    aCreateThing(playerid, 522, 191);

    PlayerPlaySound(playerid, 1139, 0.0, 0.0, 0.0);

    return 1;

    }

    si cand dau compile:

    D:\mere.pwn(261) : error 017: undefined symbol "Info"

    D:\mere.pwn(262) : error 017: undefined symbol "Info"

    D:\mere.pwn(263) : error 017: undefined symbol "aCreateThing"

    Pawn compiler 3.2.3664 Copyright © 1997-2006, ITB CompuPhase

    3 Errors.

    Ce sai fac?

    am pus include zcmd

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