09.10.2010, 20:37
(
Последний раз редактировалось FrankC; 09.10.2010 в 20:54.
)
Im trying to destroy a owned vehicle
but it only destroys the vehicle im in but i still got the vehicle? its just not there
Pretty hard to explaine if you didnt understand please let me know!
Never mind works now
but it only destroys the vehicle im in but i still got the vehicle? its just not there
Pretty hard to explaine if you didnt understand please let me know!
pawn Код:
if(strcmp(cmd, "/destroycar", true) == 0 )
{
if(!IsPlayerInAnyVehicle(playerid)) return SendClientMessage(playerid,COLOR_RED," You are not in a vehicle !");
//if(IsBuyableCar[vehicleid])
if(Owned[vehicleid])
{
if (strmatch(VehicleSystem[IsBuyableCar[vehicleid]][Owner],PlayerName(playerid)))
{
DestroyVehicle(vehicleid);
SendClientMessage(playerid,COLOR_GREEN," You have destroyed your vehicle !");
RemovePlayerFromVehicle(playerid);
SaveMYSQLCarID(vehicleid);
}
else
{
SendClientMessage(playerid,COLOR_RED," This is not your vehicle !");
}
}
return 1;
}