help with cars
#1

i put cars in samp but i want the car can just drive one gang


can someone put here wat i need put in pawno end where in pawno



sory on bad english

pls help
Reply
#2

I really don't understand what you're talking about... Could you try re-explaining your question? I almost didn't understand anything.
Reply
#3

i want that some cars what i put in samp can drive only 1 gang(LCN)
Reply
#4

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;
}
Reply
#5

can you put some simpler
Reply
#6

it can't get any simpler than that
Reply
#7

I actually posted the easy way about how to do it. lol
Reply
#8

i dont understand this

Код:
Gang[playerid][YourGang] == 0
i dont understand what with this
Reply
#9

Quote:
Originally Posted by My Code
Change the "Gang[playerid][YourGang] == 0" to your gang data
Reply
#10

is that something like this

Код:
Gang[playerid][LCN] == 12
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)