Jump to content
  • 0

Problema /acreatecar [PAWNO]


ProSkiLLz

Question

Buna ziua , sunt nou si am tot incercat sa caut peste tot comanda "/acreatecar" dar nicaieri nu am gasit .

Pot specifica ca am gasit cateva dar degeaba pentru ca imi dadea erori de genu "expresia nu are sens "createdcars".

Am un Gamemod mod RolePlay si necesit comanda /acreatecar daca s-ar putea sa mi-o dati .

PS:vreau o comanda buna daca se poate... sa nu lipseseasca nimic.

Multumesc anticipat ProSkiLLz

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

CMD:giveveh( playerid, params[ ] )

    {

            if ( GetPVarInt( playerid, "Level" ) < 2 )

                return SendClientMessage( playerid, -1, "You are not allowed to use this command");

            if ( sscanf( params, "uiii", params[ 0 ], params[ 1 ], params[ 2 ], params[ 3 ] ) )

                return SendClientMessage( playerid, -1, ""COL_LIGHTBLUE"Usage:{FFFFFF} /giveveh <id/name> <vehicleID> <color 1> <color 2> ");

            if ( !IsPlayerConnected( params[ 0 ] ) )

                return SendClientMessage( playerid, -1, ""COL_RED"Player is not connected");

                if(params[1] < 400 || params[1] > 611 )

                return SendClientMessage( playerid, -1, ""COL_LRED"Invalid vehicle ID.");

                if(params[2] < 0 || params[2] > 255 || params[3] < 0 || params[3] > 255)

                return SendClientMessage( playerid, -1, ""COL_LRED"Invalid vehicle colors.");

new Float: X, Float: Y, Float: Z, veh, vehname[100];

GetPlayerPos(params[0], X, Y, Z);

    veh = CreateVehicle(params[1], X, Y, Z, 0, params[2], params[3], 300);

PutPlayerInVehicle(params[0], veh, 0);

            LinkVehicleToInterior(veh, GetPlayerInterior(params[0]));

    new string[128], vehid;

    vehid = GetPlayerVehicleID(params[0]);

    vehname = GetVehicleName(vehid);

    SetPlayerArmedWeapon(params[0],2);

    format(string,sizeof(string),"Admin %s gives a %s to %s.",pName( playerid ),vehname, pName(params[0]));

ABC(COLOR_RED,string,1);

            return 1;

    }

Comanda asta am creat-o pentru serverul meu.Cu aceasta comanda creeze o masina cuiva, alegand inclusiv culorile.Deci o poti folosi atat pentru tine, cat si pentru alti playeri.Comanda este informativa, cu siguranta iti va da erori pentru ca nu ai definite ABC, pName, GetPVarInt si multe altele.Nu am de unde sa stiu cum le ai tu definite in GM-ul tau.

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
×
×
  • 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.