When player Enters vehicle...help!
#21

Hmmm .. i shoud shut up before i thank.. someo0ne... lol
the Prop now is that players can still enter the big quary "truck" Designed only to be allowable to acces for Death_Angel Name oNLy... now can you fix that ?
Reply
#22

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER && GetPlayerVehicleID(playerid) == deathtruck)
    {
        new name[MAX_PLAYER_NAME];
        GetPlayerName(playerid, name, sizeof name);
        if(strcmp("Death_Angel", name, true) != 0) RemovePlayerFromVehicle(playerid),
            SendClientMessage(playerid, 0xFFFFFFAA, "ERROR: This Vehicle is For DeathAngel ONLY !");
    }
    return 1;
}
The Player cant be 100% stoped entering / joging the other person out of the car
Reply
#23

Well.. well.. i dont want eny other person enters the vehicle defined for the name... now do I ? .. Maybe SA-MP bug -.-
Reply
#24

Nevermind my prevuis post... IT WORKS!!
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)