Jump to content
  • 0

Masini Personale in functie de skin


Question

Posted

Deci am pus asa:

if(GetPlayerVehicleID(playerid) == Nume)

{

new sendername[MAX_PLAYER_NAME];

GetPlayerName(playerid, sendername, sizeof(sendername));

if(strcmp(sendername,"Player",true))

{

SendClientMessage(playerid,0xF5DEB3AA,"Tu nu esti proprietarul acestui vehicul!");

RemovePlayerFromVehicle(playerid);

}

}...Dar cum pun masina in functie de skin?..Adica numai daca are skinul definit sa poata conduca vehiculul

3 answers to this question

Recommended Posts

Posted

faci cu functia asta:

if ( GetPlayerSkin( playerid ) == skin )
{
    //alte functii...
}
else
{
    SendClientMessage( playerid, COLOR_RED, "Nu ai skinul potrivit pentru a folosi comanda!" ); }
return 1;
}

Fara reclama in semnatura!

Posted

Am pus asa:

if ( GetPlayerSkin( playerid ) == 275 )

{

if(GetPlayerVehicleID(playerid) == ambulantacar2)

{

{

SendClientMessage(playerid,0xF5DEB3AA,"Tu nu esti Medic!");

RemovePlayerFromVehicle(playerid);

}

}

} si nu mere..cand intru nu se intampla nimic

Posted

fa asa:

if ( GetPlayerSkin( playerid ) == 275 )
{
    if ( GetPlayerVehicleID( playerid ) == ambulantacar2 )
    {
        //aici pui ce trebuie sa se intample daca ii totul ok ma refer daca are skinul 275 si masina ambulantacar2
    }
} else {
    SendClientMessage( playerid, 0xF5D3B3AA, "Trebuie sa fii medic pentru a folosi comanda!
    RemovePlayerFromVehicle( playerid ); }
return 1;
}

Fara reclama in semnatura!

Guest
This topic is now closed to further replies.
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue. For more details you can also review our Terms of Use and Privacy Policy.