[Ajuda] Modelo Cars
#4

Vocк pode fazer isso com uma variбvel array bidimensional .


Coloque :


pawn Код:
//No Topo do GM:

new bool:UmaVezPorCarro[MAX_PLAYERS][3];


//Na public OnPlayerDisconnect:

for(new x = 0; x < 3; x++)  UmaVezPorCarro[playerid][x] = false;


//E, logo acima da linha "CarInfo[Veiculo][cModel] = modelo;" do seu cуdigo:

if(vehid == PlayerInfo[playerid][pCarKey])
{
    if(UmaVezPorCarro[playerid][0]) return SendClientMessage(playerid, 0xB4B5B7FF, "Jб usou este comando neste veнculo !");
    UmaVezPorCarro[playerid][0] = true;
}
else if(vehid == PlayerInfo[playerid][pCarKey2])
{
    if(UmaVezPorCarro[playerid][1]) return SendClientMessage(playerid, 0xB4B5B7FF, "Jб usou este comando neste veнculo !");
    UmaVezPorCarro[playerid][1] = true;
}
else if(vehid == PlayerInfo[playerid][pCarKey3])
{
    if(UmaVezPorCarro[playerid][2]) return SendClientMessage(playerid, 0xB4B5B7FF, "Jб usou este comando neste veнculo !");
    UmaVezPorCarro[playerid][2] = true;
}


Espero ter ajudado .
Reply


Messages In This Thread
[Ajuda] Modelo Cars - by kinhobryant - 22.04.2012, 02:57
Re: [Ajuda] Modelo Cars - by kinhobryant - 22.04.2012, 03:19
Re: [Ajuda] Modelo Cars - by tonisantolia - 22.04.2012, 04:04
Re: [Ajuda] Modelo Cars - by rjjj - 22.04.2012, 04:10
Re: [Ajuda] Modelo Cars - by kinhobryant - 22.04.2012, 15:37

Forum Jump:


Users browsing this thread: 2 Guest(s)