Jump to content
  • 0

Problema /createpr


SkyLeAs

Question

Problemă întâlnită (descriere):Pai lucrez la un simplu fs si am facut comanda /createpr ( create pickup ) Iar atunci cand dau /createpr nu imi apare pick-up :-?? si nici 3dtext-u...
Ero(area / rile) / warning-(ul / urile):~~~
Liniile de cod / sursa / script-ul:

public OnFilterScriptInit()
{
    //P_RACE[1] = CreatePickup(19132, 4, 1388.6906, 1304.9215, 10.8203, -1);
    Create3DTextLabel("{ff0000}[ {159c00}VUP {ff0000}]", 0x008080FF, 1388.6906,1304.9215,10.8203,0.3875, 0, 0);
    return 1;
}
public OnPlayerPickUpPickup(playerid, pickupid)
{
	if(pickupid == P_RACE[1])
	{
      if(IsPlayerInAnyVehicle(playerid))
      {
			GetVehicleVelocity(vehicle,X,Y,Z);
            SetVehicleVelocity(vehicle,X,Y,Z+2);
	  }
	  else
	  {
			GetPlayerVelocity(playerid, X, Y, Z);
            SetPlayerVelocity(playerid, X, Y, Z + 2.0);
      }
    }
	return 1;
}
//------------------------------------------------------------------------------
CMD:createpr(playerid, params[])
{
	P_RACE[1] = CreatePickup(19132, 4, 1388.6906, 1304.9215, 10.8203, -1);
	return SendClientMessage(playerid, 0xFFFFFFFF, "Pickup Creating...");
}
CMD:deletepr(playerid, params[])
{
	DestroyPickup(P_RACE[ 1 ]);
	return SendClientMessage(playerid, 0xFFFFFFFF, "Pickup Delete...");
}

Imagini / Video (optional):!!!
Aţi încercat să rezolvaţi singur?:Pai nush ce are..

Link to comment
Share on other sites

6 answers to this question

Recommended Posts

CMD:createpr(playerid, params[])
{
    P_RACE[1] = CreatePickup(19132, 1, 1388.6906, 1304.9215, 10.8203, -1);

    SendClientMessage(playerid, 0xFFFFFFFF, "Pickup Creating...");
    return 1;
}
CMD:deletepr(playerid, params[])
{
    DestroyPickup(P_RACE[ 1 ]);

    SendClientMessage(playerid, 0xFFFFFFFF, "Pickup Delete...");
    return 1;
}

 

1859311972_BANNER-GIREADAcopy-min.thumb.png.48e5e420ae2185dce5b244965a1d2601.png

 

Link to comment
Share on other sites

CMD:createpr(playerid, params[])

{

    P_RACE[1] = CreatePickup(19132, 1, 1388.6906, 1304.9215, 10.8203, -1);

    SendClientMessage(playerid, 0xFFFFFFFF, "Pickup Creating...");

    return 1;

}

CMD:deletepr(playerid, params[])

{

    DestroyPickup(P_RACE[ 1 ]);

    SendClientMessage(playerid, 0xFFFFFFFF, "Pickup Delete...");

    return 1;

}

Dau /createpr si nu apare :(

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.