How to create a car that is on the map but locked to someones name?
#1

How to create a car that is on the map but locked to someones name? Like i create a car but its LOCKED to that specific name.

Or locked to a team like TEAM_ARMY
Reply
#2

Anyone got a clue?
Reply
#3

How would i do this?
AddPlayerClass(287,365.5157,2537.5901,16.6640,162. 5553,0,0,0,0,0,0); // This co ord as Maveric
AddPlayerClass(287,393.5299,2446.9619,16.5000,319. 5601,0,0,0,0,0,0); // This Co Ord As Rustler
AddPlayerClass(287,414.3279,2442.6599,16.5000,59.0 561,0,0,0,0,0,0); // This Co Ord As Rustler
Reply
#4

check the vehicle id OnPayerEnterVehicle and GePlayerName
Reply
#5

Example Please?
Reply
#6

Top of script
Код:
#define team_example   1
new pTeam[MAX_PLAYERS];

new EXAMPLE1;
Код:
EXAMPLE1 = AddStaticVehicleEx(596,1538.6521,-1643.8551,5.6114,0.3763,0,1,100000);
Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(IsPlayerInVehicle(playerid, EXAMPLE1) || IsPlayerInVehicle(playerid, EXAMPLE2) || IsPlayerInVehicle(playerid,EXAMPLE))
    {
        SCM(playerid, RED, "you are not part of this group.");
        RemovePlayerFromVehicle(playerid);
    }
    else
    {
        if(pTeam[playerid] == team_example)
        {
            SCM(playerid, GREEN, "/engine to start the vehicle");
        }
    }
    return 1;
}
That should work, haven't tested.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)