pCarKey help please
#1

for(new i = 0; i < sizeof(CarInfo); i++)
{
new newcar = GetPlayerVehicleID(playerid);
new keycar = PlayerInfo[playerid][pAutoVoti];
new string[256];
if(newcar == CarInfo[i][ownedvehicle])
{
if(CarInfo[i][cOwned]==0)
{
TogglePlayerControllable(playerid, 0);
CarOffered[playerid]=1;
format(string,sizeof(string),"Sхiduk[%s] Hind[%d] ",CarInfo[i][cDescription],CarInfo[i][cValue]);
SendClientMessage(playerid,ROHELINELIME,"[Autopood]");
SendClientMessage(playerid,VALGE,string);
SendClientMessage(playerid,VALGE,"Ostmiseks: /ostaauto");
SendClientMessage(playerid,VALGE,"Vдljumiseks: /sхiduk vдlju");
SendClientMessage(playerid,ROHELINELIME,"[--------]");
}
if(CarInfo[i][cOwned]==1)
{
format(string,sizeof(string),"Sхiduki omanik: %s",CarInfo[i][cOwner]);
SendClientMessage(playerid,SININE,string);
}
}
}
return 1;
}


i want that other people cant drive with my car
anybody help?
Reply
#2

SetVehicleParamsForPlayer
Reply
#3

vehicleparam is crap i mean like


SendClientMessage(playerid,GRAY,"You dont have keys of this vehicle");
RemovePlayerFromVehicle(playerid);


but i tried but sometime it kicks me out even if i have pCarKey etc..
Reply
#4

Check La-Rp Gamemode , theres lot of useful functions made by Ellis.
Reply
#5

iv looked but everything i tried there didnt work or worked wrongly for me
Reply
#6

Oota ma proovin korra ise midagi sulle teha.
Reply
#7

Hi

What I did to Lethotas RP was use SetPlayerPos to remove from vehicle, just like a few centimeters away from the car, that way they can't get...

I can show you a sample if you would like as RemovePlayerFromVehicle isn't the best idea for the OnEnter Callback..

Regards
Matthew
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)