[Ajuda] Sistema veiculocasa
#8

pawn Код:
public OnPlayerStateChange(playerid, newstate, oldstate)
{
    if(newstate == PLAYER_STATE_DRIVER)
    {
        if(strcmp(Veiculopp[GetPlayerVehicleID(playerid)][Nome], PlayerName(playerid), false))
        {
            format(g_string, sizeof(g_string), "| ERRO | Veнculo prуprio do(a) %s somente ele(a) pode dirigi-lo!", Veiculopp[GetPlayerVehicleID(playerid)][Nome]);
            SendClientMessage(playerid, 0xFF6633AA, g_string);
            PlayerPlaySound(playerid, 1147, 0.0, 0.0, 0.0);
            RemovePlayerFromVehicle(playerid);
        }
        else
        {
            Update3DTextLabelText(VLabel3D[playerid], -1, "  ");
        }
        return 1;
    }
    return 1;
}
ae pra te ajudar eu tirei esse codigo do fs de veh criado por JIM_CARREY
se quiser o fs para estudo baixe aki
http://www.solidfiles.com/d/f869/

espero ter ajudado! < > | ><
Reply


Messages In This Thread
Sistema veiculocasa - by iCamila - 22.07.2012, 19:55
Re: Sistema veiculocasa - by ViniBorn - 25.07.2012, 18:58
Re: Sistema veiculocasa - by iCamila - 25.07.2012, 19:19
Re: Sistema veiculocasa - by Arthenry - 25.07.2012, 19:37
Re: Sistema veiculocasa - by humildadeforever - 25.07.2012, 19:37
Re: Sistema veiculocasa - by iCamila - 25.07.2012, 19:47
Re: Sistema veiculocasa - by iCamila - 25.07.2012, 19:49
AW: Sistema veiculocasa - by billy the kid - 25.07.2012, 19:55
Re: Sistema veiculocasa - by iCamila - 25.07.2012, 19:58
[No subject] - by iCamila - 25.07.2012, 22:43

Forum Jump:


Users browsing this thread: 1 Guest(s)