11.10.2011, 12:29
pawn Код:
public OnPlayerSelectedMenuRow(playerid, row)
{
new Menu:carros;
carros = GetPlayerMenu(playerid);
new Float: pX, Float: pY, Float: pZ;
GetPlayerPos(playerid, pX, pY, pZ);
if(carros == menucar)
{
switch(row)
{
case 0: // NRG - 500
{
mcarcriado[playerid] = CreateVehicle(522, pX, pY, pZ, 10, 1, 1,(50000*5));
LinkVehicleToInterior(mcarcriado[playerid], GetPlayerInterior(playerid));
...
O destroyVehicle deveria ter funcionado, tenta usar ele no oldstate.
pawn Код:
public OnPlayerStateDriver(playerid, newstate, oldstate)
{
if(oldstate == PLAYER_STATE_DRIVER) DestroyVehicle(mcarcriado[playerid]);