12.05.2010, 17:49
Someone explain this shit.
I made a script to kick your ass outta other factions' vehicles, however, it only works for some.
Top of script:
This for an instance only kicks you from lvfbT1 (las venturas fire brigade Truck 1), not the others. I tested as Faction 7, Rank 7.
And this one, below, shows the News Vans as News Helicopters:
Seriously, what?
Please give me a hand here.
I made a script to kick your ass outta other factions' vehicles, however, it only works for some.
Top of script:
pawn Код:
if(newstate == PLAYER_STATE_DRIVER)
{
new vehid = GetPlayerVehicleID(playerid);
pawn Код:
if(vehid == lvfbT1 || vehid == lvfbT2 || vehid == lvfbT3 || vehid == lvfbT4)
{
if(PlayerInfo[playerid][Faction] != 4 || PlayerInfo[playerid][Rank] < 2)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED , "[Faction Vehicle]: LVFB Fire Truck - Rank 2+ only");
return 1;
}
}
And this one, below, shows the News Vans as News Helicopters:
pawn Код:
if(vehid == lvbc_newschopper)
{
if(PlayerInfo[playerid][Faction] != 5 || PlayerInfo[playerid][Rank] < 3)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED , "[Faction Vehicle]: LVBC News Helicopter - Rank 3+ only");
return 1;
}
}
if(vehid == lvbc_newsvan1 || vehid == lvbc_newsvan2 || vehid == lvbc_newsvan3)
{
if(PlayerInfo[playerid][Faction] != 5 || PlayerInfo[playerid][Rank] < 3)
{
RemovePlayerFromVehicle(playerid);
SendClientMessage(playerid, COLOR_RED , "[Faction Vehicle]: LVBC News Helicopter - Rank 3+ only");
return 1;
}
}
Please give me a hand here.