Jump to content
  • 0

problema masini de la casa


Question

Posted

vreau ca masinilie care sunt la casele fara proprietar sa nu poata fi luate de nimeni ... cum trebuie sa faca sta ?

eventual cand cineva incearca sa ia o masina sa apara " This car is owned by the state ..... "

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

8 answers to this question

Recommended Posts

Posted

La:

[pawn]public OnPlayerStateChange(playerid, newstate, oldstate)

{

              if(newcar == 1)

{

if(PlayerInfo[playerid][pPhousekey] == 0) { }

else

    {

SendClientMessage(playerid, COLOR_GRAD1,"You don't have permission to drive this car.Rent a room owner first.");

RemovePlayerFromVehicle(playerid);

}

}[/pawn]

Faci asa peentru fiecare casa

Posted

dupa fiecare casa facuta in script pune asta

1dute in filtescript si dupa fiecare  cod de casa pune asta

[pawn]

public OnPlayerStateChange(playerid, newstate, oldstate)

{

              if(newcar == 1)

{

if(PlayerInfo[playerid][pPhousekey] == 0) { }

else

    {

SendClientMessage(playerid, COLOR_GRAD1,"You don't have permission to drive this car.Rent a room owner first.");

RemovePlayerFromVehicle(playerid);

}

}[/pawn]

ce explicit mai vrei?

M-am lasat de comunitatea sa-mp.ro

Posted

Si casele cum le gasesc in gm , asa cum am spus gm-ul nu este scriptat de mine , eu sunt varza la scripting dar sper sa ma ajutati voi

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Posted

Depinde ce sistem  de case ai folose?te control ?i f

ce anume sa folosesc ... man zi mai pe limba mea asa =))

RPG.VIBEPLAY.RO

Recomand acest server Romanesc bY woozie aka. weedluver aka. undertaker !!

Posted

Alexica ti-a explicat foarte clar dar sunt oameni exact ca tine care vor exact totul de la cap si coada, noi pe acest forum ajutam oameni dar nici chiar sa dam mura-ngura cum vreti sa invatati daca nici nu va straduiti?

Cauta functia

public OnPlayerStateChange(playerid, newstate, oldstate)

Si acolo trebuie sa te iei dupa celelalte accese de masini de exemplu de la factiuni doar ca trebuie sa pui variabila care acceseaza cheia de casa

pHouseKey;

asta e folosita pe  GF daca il ai cumva daca nu vezi ce sistem de case ai si verifica variabilele

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.