Car/zcmd: Open & Close - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (
https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Car/zcmd: Open & Close (
/showthread.php?tid=253153)
Car/zcmd: Open & Close -
GrandMaa - 04.05.2011
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
Re: Car/zcmd: Open & Close -
coole210 - 05.05.2011
Uhh..
I don't really understand what you mean,..
Код:
if(IsPlayerInAnyVehicle(playerid))
if(GetPlayerVehicleSeat(playerid) != 0)
That checks if he's in a vehicle.
Re: Car/zcmd: Open & Close -
GrandMaa - 05.05.2011
My problem is: in my Car, i can /Close and /open.
If im Not in my Car, i cannot Close my Car..
Re: Car/zcmd: Open & Close -
Cameltoe - 05.05.2011
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
Re: Car/zcmd: Open & Close -
GrandMaa - 05.05.2011
In /Close or /Open?
Thx <3
Re: Car/zcmd: Open & Close -
Cameltoe - 05.05.2011
Quote:
Originally Posted by GrandMaa
In /Close or /Open?
Thx <3
|
This isn't the request forum.