Hmm My brain failing me help..
#1

I added if(PlayerInfo[playerid][pJob] >= 1) Dont remove me from vehicle but if i remove it bam Im removed cause Im not FiremanVehicle What im trying to do is if someone walks up trys to take the firetruck it wont let them unless there on fire man duty as if(PlayerInfo[playerid][pJob] >= 1) But Im tired and i cant think straight.. Anyone please help.. thanks
Код:
  new PlayerName[24];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new Vehicle = GetPlayerVehicleID(playerid);
        if(Vehicle == FiremanVehicle)
        {
		    if(PlayerInfo[playerid][pJob] >= 1)
            {
                if(strcmp(PlayerName,"FiremanVehicle",true))
                {
                     SendClientMessage(playerid, 0x33AA33AA, "You Are Not On Fire Duty");
                     RemovePlayerFromVehicle(playerid);
				}
            }
        }
    }
Reply
#2

Edit Sorry I got it LOL Dur..................
Код:
    new PlayerName[24];
    GetPlayerName(playerid, PlayerName, sizeof(PlayerName));
    if(newstate == PLAYER_STATE_DRIVER)
    {
        new Vehicle = GetPlayerVehicleID(playerid);
        if(Vehicle == FiremanVehicle == PlayerInfo[playerid][pJob] >= 1)
        {
            if(strcmp(PlayerName,"FiremanVehicle",true))
            {
                SendClientMessage(playerid, 0x33AA33AA, "You Are Not On Fire Duty");
                RemovePlayerFromVehicle(playerid);
            }
        }
    }
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)