RPG Mode Adding Private Cars
#1

I have a rpg mode,i want adding private Corleone family cars...But i cant do it,please help me...I know adding but my mode is have a car key and car engine system.(Bkz. /startup /turnoff)

MSN : d0min4t0r@w.cn
Reply
#2

CreateVehicle/AddStaticVehicle.
Reply
#3

I know this functions but i don't want it.I want,If player in the Corleone faction can enter this cars.If Player faction != corleone he can't enter this vehicle.I want this...
Reply
#4

Please help me
Reply
#5

Quote:
Originally Posted by HeX123
I know this functions but i don't want it.I want,If player in the Corleone faction can enter this cars.If Player faction != corleone he can't enter this vehicle.I want this...
AddStaticVehicleEx()
Reply
#6

Quote:
Originally Posted by Joruz_Tellino
Quote:
Originally Posted by HeX123
I know this functions but i don't want it.I want,If player in the Corleone faction can enter this cars.If Player faction != corleone he can't enter this vehicle.I want this...
AddStaticVehicleEx()
Huh? Oh cmon, keep your replies awar..
How does it go there? Show me where it checks if a vehicle belongs to the "Corleones".
Reply
#7

And i know this : "IsACorleoneCar" ,"IsA" bkz...I Know this but i don't know using this functions.

Example :
pawn Код:
public OnPlayerEnterVehicle(????)
{
if(IsACorleoneCar && PlayerInfo[playerid][pMember] == 6(corleone faction number))
{}
else
{
RemovePlayerFromVehicle(playerid)
SendClientMessage(????,????,"You Are Not In Corleone Family !");
return 1;
}
This script do work ?
Reply
#8

pawn Код:
forward IsACorleoneCar(carid);
pawn Код:
public IsACorleoneCar(carid)
{
    if(carid == 123 || carid == 456)
    {
        return 1;
    }
    return 0;
}
Change 123 and 456 to yours and add more if its needed.

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new VehicleID = GetPlayerVehicleID(playerid);

        if(IsACorleoneCar(VehicleID) && PlayerInfo[playerid][pMember] == 6)
        {
        // Do nothing.. :D
        }
        else
        {
        RemovePlayerFromVehicle(playerid);
        SendClientMessage(playerid, 0xFFFFFFAA, "You Are Not In Corleone Family !");
        }
    }
    return 1;
}
This should work.
Reply
#9

It doesn't work.Im in corleone but i cant enter car.
Reply
#10

Did you changed the car ID?

Are you sure the ID of the Corleone family is 6?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)