SA-MP Forums Archive
help with cars - 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)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: help with cars (/showthread.php?tid=88521)



help with cars - sorfa - 27.07.2009

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


Re: help with cars - refshal - 27.07.2009

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


Re: help with cars - sorfa - 27.07.2009

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


Re: help with cars - refshal - 27.07.2009

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;
}



Re: help with cars - sorfa - 27.07.2009

can you put some simpler


Re: help with cars - Khelif - 27.07.2009

it can't get any simpler than that


Re: help with cars - refshal - 27.07.2009

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


Re: help with cars - sorfa - 27.07.2009

i dont understand this

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


Re: help with cars - refshal - 27.07.2009

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



Re: help with cars - sorfa - 27.07.2009

is that something like this

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