help with cars
#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


Messages In This Thread
help with cars - by sorfa - 27.07.2009, 11:30
Re: help with cars - by refshal - 27.07.2009, 11:44
Re: help with cars - by sorfa - 27.07.2009, 12:07
Re: help with cars - by refshal - 27.07.2009, 12:16
Re: help with cars - by sorfa - 27.07.2009, 12:37
Re: help with cars - by Khelif - 27.07.2009, 12:40
Re: help with cars - by refshal - 27.07.2009, 12:41
Re: help with cars - by sorfa - 27.07.2009, 12:45
Re: help with cars - by refshal - 27.07.2009, 13:04
Re: help with cars - by sorfa - 27.07.2009, 16:51

Forum Jump:


Users browsing this thread: 1 Guest(s)