[Help]Enter Car
#1

Hello,

I have a problem at the entrance to the car under public OnPlayerEnterVehicle.
I did that only members of the organization can drive a vehicle,
but my problem is that someone else can not go G!
How to do that someone else can be front passenger and not the driver?
if someone can give that part of the script?

Код:
Script:

if(IsALcnCar(vehicleid))
{
if(PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6) { }
else {
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx,  cy, cz);
GameTextForPlayer(playerid, "~w~La Cosa Nostra", 5000, 4);
}
}
Pictures:

http://www.zaslike.com/files/07lqh25nq1eluj9hev5.png
Reply
#2

Код:
if(IsALcnCar(vehicleid))
{
if((PlayerInfo[playerid][pLeader] == 6 || PlayerInfo[playerid][pMember] == 6) || ispassenger) { }
else {
new Float:cx, Float:cy, Float:cz;
GetPlayerPos(playerid, cx, cy, cz);
SetPlayerPos(playerid, cx,  cy, cz);
GameTextForPlayer(playerid, "~w~La Cosa Nostra", 5000, 4);
}
}
Reply
#3

Thank you very muchh DDDDDDDDDDD
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)