How i can make the only soldier class, who able drive rhino?
#1

Hey guys, i need help here...
So the points, i want just only soldier class who will able to drive rhino.

So here is my codes:
pawn Код:
public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
{
    if(GetVehicleModel(vehicleid) == 432 &&  gPlayerClass[playerid] == SNIPER && gPlayerClass[playerid] == PILOT)
    {
        SendClientMessage(playerid, COLOR_BRIGHTRED, "You need to be soldier to able drive rhino tank");
        RemovePlayerFromVehicle(playerid);
    }
    return 1;
}
Below are my codes.
When i tested it, and tried to get in to rhino, the player is keeping stay inside the rhino, and doesnt send any error message?

Anyone can help me please?
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)