Jump to content
  • 0

Masini Personale in functie de skin


mura

Question

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

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

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

Link to comment
Share on other sites

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!

Link to comment
Share on other sites

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.