Jump to content
  • 0

Eroare wanted !


TullFuTz

Question

Problema intalnita (descriere): Deci daca am w1 si sunt fara masina langa cop si ei ma omoara intr in jail , iar daca sunt in masina si bubui langa ei eu nu intru in jail ! Cum pot sa fac ca atunci cand mor / bubui langa cop si eu am wanted sa intru in jail ? Am un gamemode pornit de la vproject ! 
Ero(area / rile) / warning-(ul / urile): ---
Liniile de cod / sursa / script-ul(obligatoriu): Care parte sa v-o dau ?
Imagini / Video (optional): -
Ati incercat sa rezolvati singur?:  Pai am incercat sa fac cv cu state driver dar nu imi iese...

Link to comment
Share on other sites

3 answers to this question

Recommended Posts

  • 0

Nu te folosesti de OnPlayerStateChange...

Faci asa:

La callback-ul OnPlayerDeath(playerid, killerid, reason) verifici daca playerul are 'Wanted Level' mai mare de 0 ,daca este in apropierea unui politist ... ulterior daca conditile aceste sunt indeplinite, il vei trimite la jail.

 

Edited by Ping_gooty
Link to comment
Share on other sites

  • 0

Te poti folosi de OnPlaherDeath (playerid,killerid,reason)

if (reason ==51)// 51 este motivul exploziei si folosesti si

if (IsPlayerInRangeOfPoint 

Getplayerpos (i,x,y,z) unde i reprezinta variabila dintrun for in care verifici daca playerul e politist

Edited by Mister

 

    __  ____      __           
   /  |/  (_)____/ /____  _____
  / /|_/ / / ___/ __/ _ \/ ___/
 / /  / / (__  ) /_/  __/ /    
/_/  /_/_/____/\__/\___/_/     
SERVICII SCRIPTING DE CALITATE
Pagina     Scripting     pawn
Link to comment
Share on other sites

  • 0
Acum 4 minute, Mister a spus:

Te poti folosi de OnPlaherDeath (playerid,killerid,reason)

if (reason ==51)// 51 este motivul exploziei si folosesti si

if (IsPlayerInRangeOfPoint 

Getplayerpos (i,x,y,z) unde i reprezinta variabila dintrun for in care verifici daca playerul e politist

Mersi de  raspuns . o sa incerc dar nu cred ca o sa imi iasa ca nu-s asa bun in script si asa gm-ul l-am cumparat de la cineva ... 

Acum 9 minute, Ping_gooty a spus:

Nu te folosesti de OnPlayerStateChange...

Faci asa:

La callback-ul OnPlayerDeath(playerid, killerid, reason) verifici daca playerul are 'Wanted Level' mai mare de 0 ,daca este in apropierea unui politist si daca faptasul "crimei" (killerid) este un politist... ulterior daca conditile aceste sunt indeplinite, il vei trimite la jail.

 

ms 

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.