Jump to content
  • 0

Problema cu Masinile de la Factiuni


tantan_andrey

Question

Salut. Am scos toate masinile din GM, si acuma vreau sa bag eu masini la factiuni cu MTA. Cum fac? Am incercat, am bagat cate-va masini de test, sa vad daca mi le recunoaste. Ex, am bagat de test la PD. Dar nu imi zice nici ca sunt ale PD-ului nici ca nu sunt. Ma sui in ele si sunt masini normale:( Cum sa le fac sa ma dea jos, daca sunt player civilian, sau intr-o alta factiune, sa ma dea jos si sa imi zica ca nu sunt membru al acelei factiuni? Va rog frumos ajutatima. Si scuzati-ma daca nu e bun titlul:(

Sa iti dea Deumnezeu sanatate TzAkS

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

Faci in felu urmator

[pawn]forward IsACopCar(carid);[/pawn]

[pawn]public IsACopCar(carid)

{

if(carid >= De la ce id pornesc && carid <=Pana la ce id)

{

return 1;

}

return 0;

}[/pawn]

Si la OnPlayerStateChange

[pawn]if(IsACopCar(newcar))

{

    if(IsACop(playerid)) { } // aici pui cum il ai tu daca e politist

    else { RemovePlayerFromVehicle(playerid); }

}[/pawn]

Si poti sa pui si SendClientMessage.

gXvsYS
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.