Jump to content

Question

Posted

Am pus comanda de masina pentru admin...dar nu mi se spawneaza masina ..ce e gresit?

[pawn]if(strcmp(cmdtext, "/hydra", true) == 0)

{

        if (IsPlayerAdmin(playerid))

        {

                GetPlayerPos(playerid, x, y, z);

                hydra=CreateVehicle(520, x+3, y, z, 900.00, -1, -1, 120);

                PutPlayerInVehicle(playerid, hydra,0);

                LinkVehicleToInterior( hydra, GetPlayerInterior(playerid));

        }       

        return 1;

}[/pawn]

Massari e curva mea

1 answer to this question

Recommended Posts

Posted

Poftim;

if(strcmp(cmd, "/hydra", true) == 0)
{
	new Float:X,Float:Y,Float:Z;
        GetPlayerPos(playerid,X,Y,Z);
        PutPlayerInVehicle(playerid,CreateVehicle(520,X,Y,Z,0,-1,-1,-1),0);
        SendClientMessage(playerid, COLOR_WHITE, "Ti-ai Spawnat un Hydra.");
	return 1;
}

<a href="http://www.userbars.be"><img src="http://img534.imageshack.us/img534/9098/36589.gif" alt="Free userbars" border="0"></a>

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.