10.06.2014, 09:30
Hello !
I Created A /Car And Player When Use This Command A Menu (OnPlayerSelectedMenuRow) Show For Player.
So, I Wanna Do Something When First Vehicle Spawned Nothing Happen.But When Spawn The Secend Vehicle First
Vehicle Destroy
This Is The Pawn Code
Plz Help Me...
I Created A /Car And Player When Use This Command A Menu (OnPlayerSelectedMenuRow) Show For Player.
So, I Wanna Do Something When First Vehicle Spawned Nothing Happen.But When Spawn The Secend Vehicle First
Vehicle Destroy
This Is The Pawn Code
Plz Help Me...
pawn Код:
new string[256]; format(string,sizeof(string),"%s Spawned.",car); SendClientMessage(playerid,COLOR_YELLOW,string);
carid = CreateVehicle(id,X+3,Y+2,Z,Angle,-1,-1,50000);
// PutPlayerInVehicle(playerid,carid,0);
TogglePlayerControllable(playerid,true);
VehicleInfo[carid][bought] =playerid;
if(GetPlayerInterior(playerid)) LinkVehicleToInterior(carid,GetPlayerInterior(playerid));
SetVehicleVirtualWorld(carid,GetPlayerVirtualWorld(playerid));