27.07.2009, 12:16
Example script:
pawn Код:
#include <a_samp>
new Vehicle;
public OnGameModeInit()
{
Vehicle = AddStaticVehicle(modelid, Float:spawn_x, Float:spawn_y,Float:spawn_z, Float:angle, color1, color2);
return 1;
}
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
if(vehicleid = Vehicle && Gang[playerid][YourGang] == 0) // Change the "Gang[playerid][YourGang] == 0" to your gang data
{
SendClientMessage(playerid, 0xFFFFFFFF, "Only YourGang are able to drive in this Vehicle!");
return 1;
}
return 1;
}