Woops, then it would be the first value you specified in AddStaticPickup.
public OnPickedUp(pickupid, playerid)
{
if( pickupid == 1 ) // The Pickup number here
{
SendClientMessage(playerid, COLOR_YELLOW, "Esto es un Pickup ID 407" );
return 1;
}
else if( pickupid == 2) // The second pickup number here
{
SendClientMessage(playerid, COLOR_YELLOW, "Esto es un Pickup ID 406" );
return 1; // And you are lose in this
}
}
Something like this. I don't know what your Pickup IDs are so configure them yourself.