Jump to content
  • 0

pomoc Wanted level hvězdy


Jirkas

Dotaz

10 odpovědí na tuto otázku

Recommended Posts

  • 0

staci akorad mit

 

new wl[MAX_PLAYERS];

 

public wanted

(

SetPlayerWantedLevel(killerid, wl);

return 1;

)

 

s timerem......třeba na jednu minutu ten slouží k aktualizaci tech hvezdicek co vidíme pod životama

 

SetTimer("wanted",1500,1);

 

a pak už akorád if /rob

wl[playerid] ++;

 

psal jsem to né jako kod ale jako ukazku

Link to comment
Share on other sites

  • 0

CHEF ten tvůj způsob vidim poprví ale to máš jedno :d , ja to mam třeba takhle :

 

SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid)+1); - přídá hráči 1 WL

 

a ještě bych přidal settimer pro to abys nemohl mít nad 6 WL , např :

 

kamkoli do modu :

forward wantedcontrol();

 

public wantedcontrol(){
for(new i=0;iif(GetPlayerWantedLevel(i) > 6){
SetPlayerWantedLevel(i, 6);
}}}

 

do public OnGameModeInit(){

 

SetTimer("wantedcontrol", 5000, 0);

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...