05.10.2010, 20:50
i currently have when i press f to enter a vehicle it shows a message
i want it to show the message ONLY when im in the car not before.
can anybody help me with that maybe some suggestions?
i want it to show the message ONLY when im in the car not before.
can anybody help me with that maybe some suggestions?
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
new string[128];
if(IsBuyableCar[vehicleid]!=0)
{
GetVehicleName(vehicleid);
if(strmatch(VehicleSystem[IsBuyableCar[vehicleid]][Owner],PlayerName(playerid)))
{
format(string,sizeof(string)," Vehicle ID: %d / Name: %s / Bought by: %s !",VehicleSystem[IsBuyableCar[vehicleid]][CarID],VehicleSystem[IsBuyableCar[vehicleid]][Name],VehicleSystem[IsBuyableCar[vehicleid]][Owner]);
SendClientMessage(playerid,COLOR_GREY,string);
}