Car/zcmd: Open & Close
#1

Hey,
I have been a few days the problem: I get my car just inside open and close!
DISA is somehow not...
Thanks for your help
Reply
#2

Uhh..

I don't really understand what you mean,..

Код:
if(IsPlayerInAnyVehicle(playerid))
if(GetPlayerVehicleSeat(playerid) != 0)
That checks if he's in a vehicle.
Reply
#3

My problem is: in my Car, i can /Close and /open.
If im Not in my Car, i cannot Close my Car..
Reply
#4

Quote:
Originally Posted by GrandMaa
Посмотреть сообщение
My problem is: in my Car, i can /Close and /open.
If im Not in my Car, i cannot Close my Car..
pawn Код:
new CarID = -1;

for(new vID; vID < MAX_VEHICLES; vID++)
{
     if(strmatch(VehicleInfo[vID][Owner], GetName(playerid))) { CarID = vID; break; }
}
if(CarID == -1) printf("None found.");
This little snippet might get you going
Reply
#5

In /Close or /Open?
Thx <3
Reply
#6

Quote:
Originally Posted by GrandMaa
Посмотреть сообщение
In /Close or /Open?
Thx <3
This isn't the request forum.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)