PlayerInAnyVehicle Help - 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: PlayerInAnyVehicle Help (
/showthread.php?tid=91466)
PlayerInAnyVehicle Help -
Smiths - 15.08.2009
I got this codes :
Код:
if(strcmp(cmdtext, "/testcmds", true, 5) == 0) {
if(IsPlayerInAnyVehicle(playerid))
{
SendClientMessage(playerid,COLOR_BLUE,"You Are In A Car.");
}
else
{
SendClientMessage(playerid,COLOR_LIGHTBLUE,"You Are Not In A Car.");
}
return 1;
}
But i want to make it working only in a Taxi... what do i do?
Re: PlayerInAnyVehicle Help -
Rusty1337 - 15.08.2009
pawn Код:
if(GetVehicleModel(GetPlayerVehicleID(playerid)) == TAXI_MODEL)
{
//is in a taxi
}