Posts: 94
Threads: 26
Joined: Jan 2010
Reputation:
0
i tried a [FS] earlier witch would let only a play with a certian name enter a car. it didnt work because it gave me errors and i cldnt seem to fix them.
can someone PLEASE give me a link to one because ii cant find one and this will finish my server
thanks,
Roney
Posts: 94
Threads: 26
Joined: Jan 2010
Reputation:
0
ok it didnt work. i can enter other peoples cars. it doesnt give me any warning
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
That only disallows you to enter the selected car, unless your name is whatever you put in the quotation marks.
Posts: 94
Threads: 26
Joined: Jan 2010
Reputation:
0
i know. but i made more people have this. i can enter their cars and i dont have their name
Posts: 94
Threads: 26
Joined: Jan 2010
Reputation:
0
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid == Roney_Remington)
{
new name[MAX_PLAYER_NAME];
GetPlayerName(playerid, name, sizeof name);
if(strcmp(name, "Roney_Remington", true) != 0)
{
RemovePlayerFromVehicle(playerid);
}
}
thats what i have. nd i have
new Roney_Remington;
that is at top under includes. then there is
Roney_Remington = AddStaticVehicle(463,-917.7588,2680.2612,41.9102,313.2037,86,86); // tjs bike 3
tht is under gamemodeinit
Posts: 94
Threads: 26
Joined: Jan 2010
Reputation:
0
it doesnt lock anyone out of any car
i made like 15 cars for 3 people. they can all enter eachothers cars
Posts: 94
Threads: 26
Joined: Jan 2010
Reputation:
0
someone please help me. my server will be done after this is done
Posts: 2,896
Threads: 11
Joined: Sep 2008
Reputation:
0
I forgot..
Use CreateVehicle instead of AddStaticVehicle, that should do it.