Excluding classes from entering vehicles??
#1

I am trying to exclude a specific class from entering vehicles (Zombies)
Is there any function for this, I cannot find one.
Thanks
Reply
#2

Already answered you in this post: https://sampforum.blast.hk/showthread.php?tid=330461
Reply
#3

Quote:
Originally Posted by antonio112
Посмотреть сообщение
Already answered you in this post: https://sampforum.blast.hk/showthread.php?tid=330461
I want it to exclude a specific class...
Reply
#4

yes
Код:
public OnPlayerEnterVehicle(playerid, vehicleid) {
    switch(GetVehicleModel(vehicleid)) {
        case ..............................: { // put vehicle id's in place of ...............
Reply
#5

I said class, I want to stop a class from entering any vehicle.
Reply
#6

Quote:
Originally Posted by daac
Посмотреть сообщение
I want it to exclude a specific class...
Well, how about using GetPlayerSkin function? To see if their skin equals to X X X X, where X = Zombie skin ??

for example:

pawn Код:
if(GetPlayerSkin(playerid) == 0)
      ClearAnimations(playerid);
This will prevent CJ class from entering the vehicle.
Reply
#7

I tried..
error 010: invalid function or declaration
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)