[CODE] Faction only vehicles - help please
#1

How do you restrict vehicles to faction.
Reply
#2

pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid)
{
    if(GetVehicleModel(vehicleid) == 402 && Faction[playerid] != FACTION_RED)
    {
        new Float:x, Float:y, Float:z, string[128];
        GetPlayerPos(playerid, x,  y, z);
        SetPlayerPos(playerid, x, y, z+3);
        SendClientMessage(playerid, RED, "Your faction is not allowed to enter this vehicle");
    }
}
402 is the vehicle model, and FACTION_RED would be the faction id of whoever you want to use the vehicle. If they're not in the FACTION_RED team, and they're trying to enter a buffalo, it will slap them so they don't actually enter the vehicle, its better than removing them after they enter the vehicle, because then you can avoid cheaters more easily.
Reply
#3

...Seriously gtfo

That's the single dumbest question I have read all month, and I have seen some retarded shit.

You have failed to mention:

1. What gamemode you are using
2. What your faction variables are
3. What vehicles you intend to restrict
Reply
#4

Quote:
Originally Posted by Rob_Maate
Посмотреть сообщение
...Seriously gtfo

That's the single dumbest question I have read all month, and I have seen some retarded shit.

You have failed to mention:

1. What gamemode you are using
2. What your faction variables are
3. What vehicles you intend to restrict
You don't need any of that information to help somone out, he just asked for code to give him an example, and who the hell uses downloaded gamemodes anymore? don't be an ass
Reply
#5

Don't be a smartass yourself? Click on his profile > view his started threads.

This 'individual' has literally requested that his entire gamemode be created for him, spread out over around 20 topics relating to relatively simple shit. He's obviously not learning or even bothering to try, because hey! There's a whole section of people that could be doing it for him!

And pertaining to your amazingly ignorant comment "who the hell uses downloaded gamemodes anymore?" I would politely point you to the SA-MP server browser. A whopping 90% of all online servers are either pure downloaded GM's or mediocre edits of them. Check your shit before you act like a bigboy
Reply
#6

Quote:
Originally Posted by Rob_Maate
Посмотреть сообщение
Don't be a smartass yourself? Click on his profile > view his started threads.

This 'individual' has literally requested that his entire gamemode be created for him, spread out over around 20 topics relating to relatively simple shit. He's obviously not learning or even bothering to try, because hey! There's a whole section of people that could be doing it for him!

And pertaining to your amazingly ignorant comment "who the hell uses downloaded gamemodes anymore?" I would politely point you to the SA-MP server browser. A whopping 90% of all online servers are either pure downloaded GM's or mediocre edits of them. Check your shit before you act like a bigboy
kinda funny how your signature says you have 0 players online, hows that downloaded gamemode your using working for you?
Reply
#7

Totally self-scripted. And it's working just fine for me, I don't need to flood my server with hackers and retards who can't tell the difference between their hand and a woman (you remind me strongly of this trait) to make me feel good about myself and my scripting ability.

How's having to beg for rep working out for you?
Reply
#8

Quote:
Originally Posted by Rob_Maate
Посмотреть сообщение
Totally self-scripted. And it's working just fine for me, I don't need to flood my server with hackers and retards who can't tell the difference between their hand and a woman (you remind me strongly of this trait) to make me feel good about myself and my scripting ability.

How's having to beg for rep working out for you?
http://pokit.org/get/?4853b3a0374489...bd802acf83.png
Reply
#9

Thanks DeathTone, I was just looking for an example, and this helped alot, I actually know how to do it now.
Reply
#10

Quote:
Originally Posted by DeathTone
Посмотреть сообщение
kinda funny how your signature says you have 0 players online, hows that downloaded gamemode your using working for you?
I Lol'd at this.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)