Jump to content
  • 0

pomoc pomoc s pickupom a wanted levelom


Emmyson172

Dotaz

mám vytvorený pickup ktorý keď hráč zoberie tak mu dá zbraň a 1 wl a tak dookola ked zoberie pickup

ale ako mám urobiť že keď má hráč  WL 6 tka už nebude môcť pickup zobrať ?

prosím o pomoc.

Ďakujem  :)

Link to comment
Share on other sites

2 odpovědí na tuto otázku

Recommended Posts

  • 0

no mám to tak spravene

public OnPlayerPickUpPickup(playerid, pickupid)
{
    if(pickupid == wl)
    {
     GivePlayerWeapon(playerid,26,30);
     SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) +1);
    }
	return 1;
}

jak to tam mam dopísať ? nechápem.

Link to comment
Share on other sites

  • 0

Skús ale neviem či to bude fungovať



public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == wl)
{
if(GetPlayerWantedLevel(playerid) >= 6){
GivePlayerWeapon(playerid,26,30);
SetPlayerWantedLevel(playerid,GetPlayerWantedLevel(playerid) +1);
}
    return 1;
}
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...