Pickup
#1

Mine problem:
I have in gamemode to admin can make hiden package(pickup) when player pick it get somethin...
Btw i added today some fs in my server with pickups..Now when player pick those pickups it write he found hiden package..But he didnt.So when player pick any pickup it will write he found hp.Anyone know how fix that?
I have
Quote:

public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup)
{
//what happend when player pick hided package

}
return 1;
}

Reply
#2

pawn Код:
public OnPlayerPickUpPickup(playerid, pickupid)
{
if(pickupid == pickup) // Change pickup to your pickup name ..
{
new name[MAX_PLAYER_NAME], string[44];
GetPlayerName(playerid, name, sizeof(name));
format(string, sizeof(string), "%s has found the hidden pickup.",name);
SendClientMessageToAll(0xFFFF00AA, string);
}
return 1;
}

// You can also use Game Text's when player finds the hidden pickup.
Reply
#3

I know do that.But idk why reconogize all pickups as that.
Reply
#4

Quote:
Originally Posted by oттo
Посмотреть сообщение
I know do that.But idk why reconogize all pickups as that.
It's because you named all pickups > pickup <
Reply
#5

No..Only hp is called "pickup"
Reply
#6

do stuff like

new pickuph
new pickupa
new pickupw

pickuph = health
pickupa = armour
pickupw = weapon

ect
Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)