CMD:TRUNKPUTGUN
#1

Okay, I want to make trunkputgun system but I want to make it when player is on foot like "IsPlayerNearVehicle" or something like that and gun must be placed in trunk I have no clue how can I do that can anyone help me or give me an example? REP+
Reply
#2

https://sampforum.blast.hk/showthread.php?tid=187229
Reply
#3

pawn Код:
stock IsPlayerNearVehicle(playerid, vehicleid, Float:range)
{
    new Float:x, Float:y, Float:z;
    GetVehiclePos(vehicleid, x, y, z);
    if(IsPlayerInRangeOfPoint(playerid, range, x, y, z))
    {
        return 1;
    }
    return 0;
}
Reply


Forum Jump:


Users browsing this thread: 4 Guest(s)