05.08.2012, 06:59
First of all, let's clean the code a little
You can find car id by looking at your code. Each CreateVehicle/AddStaticVehicle adds +1 to next car id. Pretty simple
pawn Код:
switch(newcar) {
case 152..162: {
if(!(PlayerInfo[playerid][pMember] == 6 || PlayerInfo[playerid][pLeader] == 6))
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid,COLOR_GREY,"{30a030}[GameFront]: {ffffff}Ne pare rau, dar nu faci parte din factiunea {30a030}Yakuza{ffffff}.");
return 1;
}
}
}