LSPD Car????
#1

Hello everyone.
How do i add for example sultan to LSPD faction?
Reply
#2

You create for example a function:

VehicleInfo[vehicleid][vTeam] and then you attribute and ID to LSPD, for example 42, it will be VehicleInfo[vehicleid][vTeam] = 42; , then you just have to check the ID
Reply
#3

Simply add a normal CreateVehicle line. Since nothing in your post specified what you actually want that car to do, the only thing I can say is maybe restrict the vehicle to the PD faction. If you were to specify information such as if you have any other vehicles, what enum you use for PD, etc - you can get more detailed assistance.
Reply
#4

Yep, like Abagail said, if you would give us more details, we would help you.
Reply
#5

PHP код:
#define MAX_CARS (yourmax)
enum vehData {
    
VehID,
    
VehTeam
};
new 
VehData[MAX_CARS][vehData];
enum playerData {
    
pTeam
};
new 
PlayerData[MAX_PLAYERS][playerData];
CMD:createveh(playeridparams[])
{
    static
    
model,
    
team;
    if (
sscanf(params"dd"modelteam))
    {
        
SendClientMessage(playerid, -1"/createveh <model> <team>");
        return 
1;
    }
    return 
1;

I help you , but you must complet
Reply
#6

Thanks you all for help <3
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)