Check If he is in your car.
#1

Hey, I am making a tie command with ZCMD.
But I dont know how to start with.
I need to check if the victim is a passenger in YOUR vehicle.
I already searched on ******, but I cant find it.
Reply
#2

Well you need to loop through all online players
pawn Код:
//this goes in your cmd
for(new i; i<GetMaxPlayers(); i++)
{
     If(IsPlayerConnected(i) && GetPlayerVehicleID(playerid) == GetPlayerVehicleID(i)){
          //this should check if the player that typed the cmd and some other player are in the same vehicle
     }
}
There are other ways but right now I'm on m phone
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)