SA-MP Forums Archive
LSPD Car???? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: LSPD Car???? (/showthread.php?tid=570494)



LSPD Car???? - TheTrue - 10.04.2015

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


Re : LSPD Car???? - Etolas - 10.04.2015

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


Re: LSPD Car???? - Abagail - 10.04.2015

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.


Re: LSPD Car???? - Emp3r0r - 10.04.2015

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


Re : LSPD Car???? - StreetRP - 10.04.2015

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


Re: LSPD Car???? - TheTrue - 10.04.2015

Thanks you all for help <3